head	1.30;
access;
symbols
	REL9_0_0:1.30
	REL9_1_ALPHA1:1.30
	REL9_0_RC1:1.30
	REL9_0_BETA4:1.30
	REL9_0_STABLE:1.30.0.6
	REL9_0_BETA3:1.30
	REL9_0_BETA2:1.30
	REL7_4_29:1.21
	REL8_0_25:1.22
	REL8_1_21:1.24
	REL8_2_17:1.26
	REL8_3_11:1.27
	REL8_4_4:1.28
	REL9_0_BETA1:1.30
	REL9_0_ALPHA5_BRANCH:1.30.0.4
	REL9_0_ALPHA5:1.30
	REL7_4_28:1.21
	REL8_0_24:1.22
	REL8_1_20:1.24
	REL8_2_16:1.26
	REL8_3_10:1.27
	REL8_4_3:1.28
	REL9_0_ALPHA4:1.30
	REL9_0_ALPHA4_BRANCH:1.30.0.2
	REL8_5_ALPHA3:1.29
	REL8_5_ALPHA3_BRANCH:1.29.0.4
	REL7_4_27:1.21
	REL8_0_23:1.22
	REL8_1_19:1.24
	REL8_2_15:1.26
	REL8_3_9:1.27
	REL8_4_2:1.28
	REL8_5_ALPHA2:1.29
	REL8_5_ALPHA2_BRANCH:1.29.0.2
	REL7_4_26:1.21
	REL8_0_22:1.22
	REL8_1_18:1.24
	REL8_2_14:1.26
	REL8_3_8:1.27
	REL8_4_1:1.28
	REL8_5_ALPHA1:1.28
	REL8_5_ALPHA1_BRANCH:1.28.0.4
	REL8_4_STABLE:1.28.0.2
	REL8_4_0:1.28
	REL8_4_RC2:1.28
	REL8_4_RC1:1.28
	REL8_4_BETA2:1.28
	REL8_4_BETA1:1.28
	REL7_4_25:1.21
	REL8_0_21:1.22
	REL8_1_17:1.24
	REL8_2_13:1.26
	REL8_3_7:1.27
	REL7_4_24:1.21
	REL8_0_20:1.22
	REL8_1_16:1.24
	REL8_2_12:1.26
	REL8_3_6:1.27
	REL7_4_23:1.21
	REL8_0_19:1.22
	REL8_1_15:1.24
	REL8_2_11:1.26
	REL8_3_5:1.27
	REL7_4_22:1.21
	REL8_0_18:1.22
	REL8_1_14:1.24
	REL8_2_10:1.26
	REL8_3_4:1.27
	REL7_4_21:1.21
	REL8_0_17:1.22
	REL8_1_13:1.24
	REL8_2_9:1.26
	REL8_3_3:1.27
	REL7_4_20:1.21
	REL8_0_16:1.22
	REL8_1_12:1.24
	REL8_2_8:1.26
	REL8_3_2:1.27
	REL8_2_7:1.26
	REL8_3_1:1.27
	REL8_3_STABLE:1.27.0.2
	REL8_3_0:1.27
	REL8_3_RC2:1.27
	REL7_3_21:1.20
	REL7_4_19:1.21
	REL8_0_15:1.22
	REL8_1_11:1.24
	REL8_2_6:1.26
	REL8_3_RC1:1.27
	REL8_3_BETA4:1.27
	REL8_3_BETA3:1.27
	REL8_3_BETA2:1.27
	REL8_3_BETA1:1.27
	REL7_3_20:1.20
	REL7_4_18:1.21
	REL8_0_14:1.22
	REL8_1_10:1.24
	REL8_2_5:1.26
	REL7_3_19:1.20
	REL7_4_17:1.21
	REL8_0_13:1.22
	REL8_1_9:1.24
	REL8_2_4:1.26
	REL8_0_12:1.22
	REL8_1_8:1.24
	REL8_2_3:1.26
	REL7_3_18:1.20
	REL7_4_16:1.21
	REL8_0_11:1.22
	REL8_1_7:1.24
	REL8_2_2:1.26
	REL8_0_10:1.22
	REL8_1_6:1.24
	REL8_2_1:1.26
	REL7_4_15:1.21
	REL7_3_17:1.20
	REL8_2_STABLE:1.26.0.2
	REL8_2_0:1.26
	REL8_2_RC1:1.26
	REL8_2_BETA3:1.26
	REL8_2_BETA2:1.26
	REL8_1_5:1.24
	REL8_0_9:1.22
	REL7_4_14:1.21
	REL7_3_16:1.20
	REL8_2_BETA1:1.26
	REL7_3_15:1.20
	REL7_4_13:1.21
	REL8_0_8:1.22
	REL8_1_4:1.24
	REL7_3_14:1.20
	REL7_4_12:1.21
	REL8_0_7:1.22
	REL8_1_3:1.24
	REL7_3_13:1.20
	REL7_4_11:1.21
	REL8_0_6:1.22
	REL8_1_2:1.24
	REL7_3_12:1.20
	REL7_4_10:1.21
	REL8_0_5:1.22
	REL8_1_1:1.24
	REL8_1_STABLE:1.24.0.2
	REL8_1_0:1.24
	REL8_1_0RC1:1.24
	REL8_1_0BETA4:1.24
	REL8_1_0BETA3:1.24
	REL7_3_11:1.20
	REL7_4_9:1.21
	REL8_0_4:1.22
	REL8_1_0BETA2:1.23
	REL8_1_0BETA1:1.23
	REL7_2_8:1.19
	REL7_3_10:1.20
	REL7_4_8:1.21
	REL8_0_3:1.22
	REL8_0_2:1.22
	REL7_2_7:1.19
	REL7_3_9:1.20
	REL7_4_7:1.21
	REL8_0_1:1.22
	REL8_0_STABLE:1.22.0.4
	REL8_0_0:1.22.0.2
	REL8_0_0RC5:1.22
	REL8_0_0RC4:1.22
	REL8_0_0RC3:1.22
	REL8_0_0RC2:1.22
	REL8_0_0RC1:1.22
	REL8_0_0BETA5:1.22
	REL8_0_0BETA4:1.22
	REL7_4_6:1.21
	REL7_3_8:1.20
	REL7_2_6:1.19
	REL8_0_0BETA3:1.22
	REL8_0_0BETA2:1.22
	REL7_2_5:1.19
	REL7_4_5:1.21
	REL7_3_7:1.20
	REL7_4_4:1.21
	REL8_0_0BETA1:1.22
	REL7_4_3:1.21
	REL7_4_2:1.21
	REL7_3_6:1.20
	REL7_4_1:1.21
	REL7_3_5:1.20
	REL7_4:1.21
	REL7_4_RC2:1.21
	REL7_4_STABLE:1.21.0.4
	REL7_4_RC1:1.21
	REL7_4_BETA5:1.21
	REL7_4_BETA4:1.21
	REL7_4_BETA3:1.21
	REL7_4_BETA2:1.21
	WIN32_DEV:1.21.0.2
	REL7_4_BETA1:1.21
	REL7_3_4:1.20
	REL7_3_2:1.20
	REL7_2_4:1.19
	REL7_3_STABLE:1.20.0.2
	REL7_2_3:1.19
	REL7_2_STABLE:1.19.0.4
	REL7_2:1.19
	REL7_2_RC2:1.19
	REL7_2_RC1:1.19
	REL7_2_BETA5:1.19
	REL7_2_BETA4:1.19
	REL7_2_BETA3:1.19
	REL7_2_BETA2:1.19
	REL7_2_BETA1:1.19
	REL7_1_2:1.19
	REL7_1_STABLE:1.19.0.2
	REL7_1_BETA:1.19
	REL7_1_BETA3:1.19
	REL7_1_BETA2:1.19
	REL7_1:1.19
	REL7_0_PATCHES:1.12.0.2
	REL7_0:1.12
	REL6_5_PATCHES:1.9.0.4
	REL6_5:1.9
	REL6_4:1.9.0.2
	release-6-3:1.5
	REL2_0B:1.2.0.2
	REL2_0:1.2;
locks; strict;
comment	@# @;


1.30
date	2010.02.11.14.29.50;	author teodor;	state Exp;
branches;
next	1.29;

1.29
date	2009.08.28.20.26.19;	author petere;	state Exp;
branches;
next	1.28;

1.28
date	2008.02.19.10.30.09;	author petere;	state Exp;
branches;
next	1.27;

1.27
date	2007.01.20.17.16.14;	author petere;	state Exp;
branches;
next	1.26;

1.26
date	2006.07.25.03.51.21;	author tgl;	state Exp;
branches;
next	1.25;

1.25
date	2006.03.07.01.03.12;	author tgl;	state Exp;
branches;
next	1.24;

1.24
date	2005.10.03.22.52.23;	author tgl;	state Exp;
branches;
next	1.23;

1.23
date	2005.02.26.18.43.33;	author tgl;	state Exp;
branches;
next	1.22;

1.22
date	2003.11.29.19.52.03;	author pgsql;	state Exp;
branches;
next	1.21;

1.21
date	2003.07.04.16.41.21;	author tgl;	state Exp;
branches;
next	1.20;

1.20
date	2002.11.01.22.52.33;	author tgl;	state Exp;
branches;
next	1.19;

1.19
date	2000.10.20.21.03.55;	author petere;	state Exp;
branches;
next	1.18;

1.18
date	2000.08.28.11.53.20;	author petere;	state Exp;
branches;
next	1.17;

1.17
date	2000.08.25.10.00.31;	author petere;	state Exp;
branches;
next	1.16;

1.16
date	2000.06.04.01.44.34;	author petere;	state Exp;
branches;
next	1.15;

1.15
date	2000.06.01.14.52.25;	author tgl;	state Exp;
branches;
next	1.14;

1.14
date	2000.05.31.00.28.34;	author petere;	state Exp;
branches;
next	1.13;

1.13
date	2000.05.29.05.45.37;	author tgl;	state Exp;
branches;
next	1.12;

1.12
date	2000.01.19.02.58.58;	author petere;	state Exp;
branches;
next	1.11;

1.11
date	99.12.13.22.35.01;	author momjian;	state Exp;
branches;
next	1.10;

1.10
date	99.12.09.19.15.33;	author momjian;	state Exp;
branches;
next	1.9;

1.9
date	98.08.25.21.34.10;	author scrappy;	state Exp;
branches;
next	1.8;

1.8
date	98.07.26.04.31.06;	author scrappy;	state Exp;
branches;
next	1.7;

1.7
date	98.07.24.03.31.58;	author scrappy;	state Exp;
branches;
next	1.6;

1.6
date	98.04.06.00.27.16;	author momjian;	state Exp;
branches;
next	1.5;

1.5
date	97.12.20.00.29.12;	author scrappy;	state Exp;
branches;
next	1.4;

1.4
date	97.12.19.02.08.42;	author scrappy;	state Exp;
branches;
next	1.3;

1.3
date	97.11.07.07.03.37;	author thomas;	state Exp;
branches;
next	1.2;

1.2
date	96.11.06.06.52.23;	author scrappy;	state Exp;
branches;
next	1.1;

1.1
date	96.11.02.02.06.46;	author bryanh;	state Exp;
branches;
next	;


desc
@@


1.30
log
@Generic implementation of red-black binary tree. It's planned to use in
several places, but for now only GIN uses it during index creation.
Using self-balanced tree greatly speeds up index creation in corner cases
with preordered data.
@
text
@#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for utils/misc
#
# IDENTIFICATION
#    $PostgreSQL: pgsql/src/backend/utils/misc/Makefile,v 1.29 2009/08/28 20:26:19 petere Exp $
#
#-------------------------------------------------------------------------

subdir = src/backend/utils/misc
top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global

override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS)

OBJS = guc.o help_config.o pg_rusage.o ps_status.o superuser.o tzparser.o \
       rbtree.o

# This location might depend on the installation directories. Therefore
# we can't subsitute it into pg_config.h.
ifdef krb_srvtab
override CPPFLAGS += -DPG_KRB_SRVTAB='"$(krb_srvtab)"'
endif

include $(top_srcdir)/src/backend/common.mk

# guc-file is compiled as part of guc
guc.o: guc-file.c

guc-file.c: guc-file.l
ifdef FLEX
	$(FLEX) $(FLEXFLAGS) -o'$@@' $<
else
	@@$(missing) flex $< $@@
endif

# Note: guc-file.c is not deleted by 'make clean',
# since we want to ship it in distribution tarballs.
clean: 
	@@rm -f lex.yy.c
@


1.29
log
@Derived files that are shipped in the distribution used to be built in the
source directory even for out-of-tree builds.  They are now alsl built in
the build tree.  This should be more convenient for certain developers'
workflows, and shouldn't really break anything else.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/misc/Makefile,v 1.28 2008/02/19 10:30:09 petere Exp $
d17 2
a18 1
OBJS = guc.o help_config.o pg_rusage.o ps_status.o superuser.o tzparser.o
@


1.28
log
@Refactor backend makefiles to remove lots of duplicate code
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/misc/Makefile,v 1.27 2007/01/20 17:16:14 petere Exp $
d15 1
a15 1
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
d28 1
a28 1
guc.o: $(srcdir)/guc-file.c
d30 1
a30 1
$(srcdir)/guc-file.c: guc-file.l
@


1.27
log
@Remove remains of old depend target.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/misc/Makefile,v 1.26 2006/07/25 03:51:21 tgl Exp $
d25 1
a25 5

all: SUBSYS.o

SUBSYS.o: $(OBJS)
	$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
a39 1
	rm -f SUBSYS.o $(OBJS)
@


1.26
log
@Remove hard-wired lists of timezone abbreviations in favor of providing
configuration files that can be altered by a DBA.  The australian_timezones
GUC setting disappears, replaced by a timezone_abbreviations setting (set this
to 'Australia' to get the effect of australian_timezones).  The list of zone
names defined by default has undergone a bit of cleanup, too.  Documentation
still needs some work --- in particular, should we fix Table B-4, or just get
rid of it?  Joachim Wieland, with some editorializing by moi.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/misc/Makefile,v 1.25 2006/03/07 01:03:12 tgl Exp $
a45 7

depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend

ifeq (depend,$(wildcard depend))
include depend
endif
@


1.25
log
@Make all our flex and bison files use %option prefix or %name-prefix
(respectively) to rename yylex and related symbols.  Some were doing
it this way already, while others used not-too-reliable sed hacks in
the Makefiles.  It's all nice and consistent now.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/misc/Makefile,v 1.24 2005/10/03 22:52:23 tgl Exp $
d17 1
a17 1
OBJS = guc.o help_config.o pg_rusage.o ps_status.o superuser.o
@


1.24
log
@Separate out the VacRUsage stuff as an independent module, in preparation
for using it for other things besides VACUUM.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/misc/Makefile,v 1.23 2005/02/26 18:43:33 tgl Exp $
d36 1
a36 3
	$(FLEX) $(FLEXFLAGS) $<
	sed -e 's/^yy/GUC_yy/g' -e 's/\([^a-zA-Z0-9_]\)yy/\1GUC_yy/g' lex.yy.c > $@@
	rm -f lex.yy.c
@


1.23
log
@Finish up the flat-files project: get rid of GetRawDatabaseInfo() hack
in favor of looking at the flat file copy of pg_database during backend
startup.  This should finally eliminate the various corner cases in which
backend startup fails unexpectedly because it isn't able to distinguish
live and dead tuples in pg_database.  Simplify locking on pg_database
to be similar to the rules used with pg_shadow and pg_group, and eliminate
FlushRelationBuffers operations that were used only to reduce the odds
of failure of GetRawDatabaseInfo.
initdb forced due to addition of a trigger to pg_database.
@
text
@d7 1
a7 1
#    $PostgreSQL$
d17 1
a17 1
OBJS = guc.o help_config.o ps_status.o superuser.o
@


1.22
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d1 9
a9 1
# $PostgreSQL: /cvsroot/pgsql-server/src/backend/utils/misc/Makefile,v 1.21 2003/07/04 16:41:21 tgl Exp $
d17 1
a17 1
OBJS = database.o superuser.o guc.o help_config.o ps_status.o
d20 1
a20 1
# we can't subsitute it into config.h.
@


1.21
log
@Add --help-config facility to dump information about GUC parameters
without needing a running backend.  Reorder postgresql.conf.sample
to match new layout of runtime.sgml.  This commit re-adds work lost
in Wednesday's crash.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/src/backend/utils/misc/Makefile,v 1.21 2003/07/02 23:06:33 tgl Exp $
@


1.20
log
@Arrange to compile flex output files as inclusions into other files
(usually bison output files), not as standalone files.  This hack
works around flex's insistence on including <stdio.h> before we are
able to include postgres.h; postgres.h will already be read before
the compiler starts to read the flex output file.  Needed for largefile
support on some platforms.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql-server/src/backend/utils/misc/Makefile,v 1.19 2000/10/20 21:03:55 petere Exp $
d9 1
a9 1
OBJS = database.o superuser.o guc.o ps_status.o
@


1.19
log
@Add support for VPATH builds, that is, building somewhere else than in the
source directory.  This involves mostly makefiles using $(srcdir) when they
might have used ".".  (Regression tests don't work with this, yet.)

Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS).  Add "override" keyword
in most places, to preserve necessary flags even when the user overrode the
flags.
@
text
@d1 1
a1 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.18 2000/08/28 11:53:20 petere Exp $
d7 3
a9 1
OBJS = database.o superuser.o guc.o guc-file.o ps_status.o
d22 3
@


1.18
log
@New configure test for flex, which recognizes only flex but does so in all
incarnations (I hope). When an acceptable flex version is not found, print
instructive error messages from both configure and the makefiles, so that
users can continue building anyway.
@
text
@d1 1
a1 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.17 2000/08/25 10:00:31 petere Exp $
d12 1
a12 1
CPPFLAGS += -DPG_KRB_SRVTAB='"$(krb_srvtab)"'
d21 1
a21 1
guc-file.c: guc-file.l
@


1.17
log
@Make the location of the Kerberos server key file run time configurable
(rather than compile time). For libpq, even when Kerberos support is
compiled in, the default user name should still fall back to geteuid()
if it can't be determined via the Kerberos system.

A couple of fixes for string type configuration parameters, now that there
is one.
@
text
@d1 1
a1 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.16 2000/06/04 01:44:34 petere Exp $
d22 3
a24 4
	$(LEX) $(LFLAGS) $<
	sed -e 's/lex\.yy\.c/guc-file\.c/g' \
	    -e 's/^yy/GUC_yy/g' \
	    -e 's/\([^a-zA-Z0-9_]\)yy/\1GUC_yy/g' < lex.yy.c > $@@
d26 3
a28 1

a31 1

d33 2
a34 1
	rm -f SUBSYS.o $(OBJS) lex.yy.c
@


1.16
log
@New ps display code, works on more platforms.

Install a default configuration file.

Clean up some funny business in the config file code.
@
text
@d1 1
a1 9
#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for utils/misc
#
# IDENTIFICATION
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.15 2000/06/01 14:52:25 tgl Exp $
#
#-------------------------------------------------------------------------
d3 3
a5 2
SRCDIR = ../../..
include $(SRCDIR)/Makefile.global
d8 7
@


1.15
log
@Simplify overly-clever Make rule, which evidently confuses at least
some versions of gmake (mine didn't do the right thing, anyway).
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.14 2000/05/31 00:28:34 petere Exp $
d14 1
a14 1
OBJS = database.o superuser.o guc.o guc-file.o
@


1.14
log
@The heralded `Grand Unified Configuration scheme' (GUC)

That means you can now set your options in either or all of $PGDATA/configuration,
some postmaster option (--enable-fsync=off), or set a SET command. The list of
options is in backend/utils/misc/guc.c, documentation will be written post haste.

pg_options is gone, so is that pq_geqo config file. Also removed were backend -K,
-Q, and -T options (no longer applicable, although -d0 does the same as -Q).

Added to configure an --enable-syslog option.

changed all callers from TPRINTF to elog(DEBUG)
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.13 2000/05/29 05:45:37 tgl Exp $
d12 1
a12 1
include ../../../Makefile.global
d21 2
a22 4
.SECONDARY: guc-file.c
.INTERMEDIATE: lex.yy.c

guc-file.c: lex.yy.c
d25 2
a26 1
	    -e 's/\([^a-zA-Z0-9_]\)yy/\1GUC_yy/g' < $< > $@@
a27 2
lex.yy.c: guc-file.l
	$(LEX) $(LFLAGS) $<
d29 5
a36 3

clean: 
	rm -f SUBSYS.o $(OBJS) lex.yy.c
@


1.13
log
@Generated header files parse.h and fmgroids.h are now copied into
the src/include tree, so that -I backend is no longer necessary anywhere.
Also, clean up some bit rot in contrib tree.
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.12 2000/01/19 02:58:58 petere Exp $
d14 1
a14 1
OBJS = database.o superuser.o trace.o 
d21 12
d37 1
a37 1
	rm -f SUBSYS.o $(OBJS)
a41 1

@


1.12
log
@Removed MBFLAGS from makefiles since it's now done in include/config.h.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.11 1999/12/13 22:35:01 momjian Exp $
a12 2

CFLAGS += -I../..
@


1.11
log
@New LDOUT makefile variable for QNX os.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.10 1999/12/09 19:15:33 momjian Exp $
a14 4

ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
@


1.10
log
@Make LD -r as macros that can be changed for QNX.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.9 1998/08/25 21:34:10 scrappy Exp $
d25 1
a25 1
	$(LD) $(LDREL) -o SUBSYS.o $(OBJS)
@


1.9
log
@
From: Massimo Dal Zotto <dz@@cs.unitn.it>

> tprintf.patch
>
>       tprintf.patch
>
>       adds functions and macros which implement a conditional trace package
>       with the ability to change flags and numeric options of running
>       backends at runtime.
>       Options/flags can be specified in the command line and/or read from
>       the file pg_options in the data directory.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.8 1998/07/26 04:31:06 scrappy Exp $
d25 1
a25 1
	$(LD) -r -o SUBSYS.o $(OBJS)
@


1.8
log
@
From: t-ishii@@sra.co.jp

As Bruce mentioned, this is due to the conflict among changes we made.
Included patches should fix the problem(I changed all MB to
MULTIBYTE). Please let me know if you have further problem.

P.S. I did not include pathces to configure and gram.c to save the
file size(configure.in and gram.y modified).
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.7 1998/07/24 03:31:58 scrappy Exp $
d20 1
a20 1
OBJS = database.o superuser.o 
@


1.7
log
@
I really hope that I haven't missed anything in this one...

From: t-ishii@@sra.co.jp

Attached are patches to enhance the multi-byte support.  (patches are
against 7/18 snapshot)

* determine encoding at initdb/createdb rather than compile time

Now initdb/createdb has an option to specify the encoding. Also, I
modified the syntax of CREATE DATABASE to accept encoding option. See
README.mb for more details.

For this purpose I have added new column "encoding" to pg_database.
Also pg_attribute and pg_class are changed to catch up the
modification to pg_database.  Actually I haved added pg_database_mb.h,
pg_attribute_mb.h and pg_class_mb.h. These are used only when MB is
enabled. The reason having separate files is I couldn't find a way to
use ifdef or whatever in those files. I have to admit it looks
ugly. No way.

* support for PGCLIENTENCODING when issuing COPY command

commands/copy.c modified.

* support for SQL92 syntax "SET NAMES"

See gram.y.

* support for LATIN2-5
* add UNICODE regression test case
* new test suite for MB

New directory test/mb added.

* clean up source files

Basic idea is to have MB's own subdirectory for easier maintenance.
These are include/mb and backend/utils/mb.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.6 1998/04/06 00:27:16 momjian Exp $
d16 2
a17 2
ifdef MB
CFLAGS += -DMB=$(MB)
@


1.6
log
@Hi,

Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.5 1997/12/20 00:29:12 scrappy Exp $
d15 4
@


1.5
log
@Major cleanout of PORTNAME variables from Makefiles...bound to screw up
some of the ports...
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.4 1997/12/19 02:08:42 scrappy Exp $
d14 1
a14 3
INCLUDE_OPT = -I../..

CFLAGS += $(INCLUDE_OPT)
d24 1
a24 1
	$(CC) -MM $(INCLUDE_OPT) *.c >depend
@


1.4
log
@More cleanups.  I can now compile without PORTNAME being defined n
Makefile.global.

End result, if all goes well, should allow for much easier porting, since
there will no longer be a concept of a "port".  Most, if not everything,
*should* be determined by configure, or by the compiler itself.  Still
work to be done though :)
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.3 1997/11/07 07:03:37 thomas Exp $
a14 4

ifdef PORTNAME
INCLUDE+=-I../../port/$(PORTNAME)    
endif
@


1.3
log
@Add database.c for database initial access info and support.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.2 1996/11/06 06:52:23 scrappy Exp $
d14 5
a18 2
INCLUDE_OPT = -I../../port/$(PORTNAME) \
              -I../../../include
@


1.2
log
@Some compile failure fixes from Keith Parks <emkxp01@@mtcc.demon.co.uk>
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/utils/misc/Makefile,v 1.1 1996/11/02 02:06:46 bryanh Exp $
d19 1
a19 1
OBJS = superuser.o 
@


1.1
log
@Convenience routine for checking superuser status.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/access/common/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:09 scrappy Exp $
d14 1
a14 3
INCLUDE_OPT =  \
              -I../../port/$(PORTNAME) \
              -I../../include \
@
