head	1.16;
access;
symbols
	REL9_0_0:1.16
	REL9_1_ALPHA1:1.16
	REL9_0_RC1:1.16
	REL9_0_BETA4:1.16
	REL9_0_STABLE:1.16.0.14
	REL9_0_BETA3:1.16
	REL9_0_BETA2:1.16
	REL7_4_29:1.12
	REL8_0_25:1.14
	REL8_1_21:1.14
	REL8_2_17:1.14
	REL8_3_11:1.15
	REL8_4_4:1.16
	REL9_0_BETA1:1.16
	REL9_0_ALPHA5_BRANCH:1.16.0.12
	REL9_0_ALPHA5:1.16
	REL7_4_28:1.12
	REL8_0_24:1.14
	REL8_1_20:1.14
	REL8_2_16:1.14
	REL8_3_10:1.15
	REL8_4_3:1.16
	REL9_0_ALPHA4:1.16
	REL9_0_ALPHA4_BRANCH:1.16.0.10
	REL8_5_ALPHA3:1.16
	REL8_5_ALPHA3_BRANCH:1.16.0.8
	REL7_4_27:1.12
	REL8_0_23:1.14
	REL8_1_19:1.14
	REL8_2_15:1.14
	REL8_3_9:1.15
	REL8_4_2:1.16
	REL8_5_ALPHA2:1.16
	REL8_5_ALPHA2_BRANCH:1.16.0.6
	REL7_4_26:1.12
	REL8_0_22:1.14
	REL8_1_18:1.14
	REL8_2_14:1.14
	REL8_3_8:1.15
	REL8_4_1:1.16
	REL8_5_ALPHA1:1.16
	REL8_5_ALPHA1_BRANCH:1.16.0.4
	REL8_4_STABLE:1.16.0.2
	REL8_4_0:1.16
	REL8_4_RC2:1.16
	REL8_4_RC1:1.16
	REL8_4_BETA2:1.16
	REL8_4_BETA1:1.16
	REL7_4_25:1.12
	REL8_0_21:1.14
	REL8_1_17:1.14
	REL8_2_13:1.14
	REL8_3_7:1.15
	REL7_4_24:1.12
	REL8_0_20:1.14
	REL8_1_16:1.14
	REL8_2_12:1.14
	REL8_3_6:1.15
	REL7_4_23:1.12
	REL8_0_19:1.14
	REL8_1_15:1.14
	REL8_2_11:1.14
	REL8_3_5:1.15
	REL7_4_22:1.12
	REL8_0_18:1.14
	REL8_1_14:1.14
	REL8_2_10:1.14
	REL8_3_4:1.15
	REL7_4_21:1.12
	REL8_0_17:1.14
	REL8_1_13:1.14
	REL8_2_9:1.14
	REL8_3_3:1.15
	REL7_4_20:1.12
	REL8_0_16:1.14
	REL8_1_12:1.14
	REL8_2_8:1.14
	REL8_3_2:1.15
	REL8_2_7:1.14
	REL8_3_1:1.15
	REL8_3_STABLE:1.15.0.2
	REL8_3_0:1.15
	REL8_3_RC2:1.15
	REL7_3_21:1.11
	REL7_4_19:1.12
	REL8_0_15:1.14
	REL8_1_11:1.14
	REL8_2_6:1.14
	REL8_3_RC1:1.15
	REL8_3_BETA4:1.15
	REL8_3_BETA3:1.15
	REL8_3_BETA2:1.15
	REL8_3_BETA1:1.15
	REL7_3_20:1.11
	REL7_4_18:1.12
	REL8_0_14:1.14
	REL8_1_10:1.14
	REL8_2_5:1.14
	REL7_3_19:1.11
	REL7_4_17:1.12
	REL8_0_13:1.14
	REL8_1_9:1.14
	REL8_2_4:1.14
	REL8_0_12:1.14
	REL8_1_8:1.14
	REL8_2_3:1.14
	REL7_3_18:1.11
	REL7_4_16:1.12
	REL8_0_11:1.14
	REL8_1_7:1.14
	REL8_2_2:1.14
	REL8_0_10:1.14
	REL8_1_6:1.14
	REL8_2_1:1.14
	REL7_4_15:1.12
	REL7_3_17:1.11
	REL8_2_STABLE:1.14.0.8
	REL8_2_0:1.14
	REL8_2_RC1:1.14
	REL8_2_BETA3:1.14
	REL8_2_BETA2:1.14
	REL8_1_5:1.14
	REL8_0_9:1.14
	REL7_4_14:1.12
	REL7_3_16:1.11
	REL8_2_BETA1:1.14
	REL7_3_15:1.11
	REL7_4_13:1.12
	REL8_0_8:1.14
	REL8_1_4:1.14
	REL7_3_14:1.11
	REL7_4_12:1.12
	REL8_0_7:1.14
	REL8_1_3:1.14
	REL7_3_13:1.11
	REL7_4_11:1.12
	REL8_0_6:1.14
	REL8_1_2:1.14
	REL7_3_12:1.11
	REL7_4_10:1.12
	REL8_0_5:1.14
	REL8_1_1:1.14
	REL8_1_STABLE:1.14.0.6
	REL8_1_0:1.14
	REL8_1_0RC1:1.14
	REL8_1_0BETA4:1.14
	REL8_1_0BETA3:1.14
	REL7_3_11:1.11
	REL7_4_9:1.12
	REL8_0_4:1.14
	REL8_1_0BETA2:1.14
	REL8_1_0BETA1:1.14
	REL7_2_8:1.11
	REL7_3_10:1.11
	REL7_4_8:1.12
	REL8_0_3:1.14
	REL8_0_2:1.14
	REL7_2_7:1.11
	REL7_3_9:1.11
	REL7_4_7:1.12
	REL8_0_1:1.14
	REL8_0_STABLE:1.14.0.4
	REL8_0_0:1.14.0.2
	REL8_0_0RC5:1.14
	REL8_0_0RC4:1.14
	REL8_0_0RC3:1.14
	REL8_0_0RC2:1.14
	REL8_0_0RC1:1.14
	REL8_0_0BETA5:1.14
	REL8_0_0BETA4:1.14
	REL7_4_6:1.12
	REL7_3_8:1.11
	REL7_2_6:1.11
	REL8_0_0BETA3:1.14
	REL8_0_0BETA2:1.14
	REL7_2_5:1.11
	REL7_4_5:1.12
	REL7_3_7:1.11
	REL7_4_4:1.12
	REL8_0_0BETA1:1.14
	REL7_4_3:1.12
	REL7_4_2:1.12
	REL7_3_6:1.11
	REL7_4_1:1.12
	REL7_3_5:1.11
	REL7_4:1.12
	REL7_4_RC2:1.12
	REL7_4_STABLE:1.12.0.4
	REL7_4_RC1:1.12
	REL7_4_BETA5:1.12
	REL7_4_BETA4:1.12
	REL7_4_BETA3:1.12
	REL7_4_BETA2:1.12
	WIN32_DEV:1.12.0.2
	REL7_4_BETA1:1.12
	REL7_3_4:1.11
	REL7_3_2:1.11
	REL7_2_4:1.11
	REL7_3_STABLE:1.11.0.4
	REL7_2_3:1.11
	REL7_2_STABLE:1.11.0.2
	REL7_2:1.11
	REL7_2_RC2:1.11
	REL7_2_RC1:1.11
	REL7_2_BETA5:1.11
	REL7_2_BETA4:1.11
	REL7_2_BETA3:1.11
	REL7_2_BETA2:1.11
	REL7_2_BETA1:1.11
	REL7_1_2:1.10
	REL7_1_STABLE:1.10.0.2
	REL7_1_BETA:1.10
	REL7_1_BETA3:1.10
	REL7_1_BETA2:1.10
	REL7_1:1.10
	REL7_0_PATCHES:1.8.0.2
	REL7_0:1.8
	REL6_5_PATCHES:1.6.0.4
	REL6_5:1.6
	REL6_4:1.6.0.2
	release-6-3:1.5
	REL2_0B:1.3.0.2
	REL2_0:1.3;
locks; strict;
comment	@# @;


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

1.15
date	2007.01.20.17.16.10;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2003.11.29.19.51.40;	author pgsql;	state Exp;
branches;
next	1.13;

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

1.12
date	2003.02.21.00.06.21;	author tgl;	state Exp;
branches;
next	1.11;

1.11
date	2001.07.15.22.48.16;	author tgl;	state Exp;
branches;
next	1.10;

1.10
date	2000.08.31.16.09.41;	author petere;	state Exp;
branches;
next	1.9;

1.9
date	2000.05.29.05.44.39;	author tgl;	state Exp;
branches;
next	1.8;

1.8
date	99.12.13.22.32.28;	author momjian;	state Exp;
branches;
next	1.7;

1.7
date	99.12.09.19.14.30;	author momjian;	state Exp;
branches;
next	1.6;

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

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

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

1.3
date	96.11.05.10.35.27;	author scrappy;	state Exp;
branches;
next	1.2;

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

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


desc
@@


1.16
log
@Refactor backend makefiles to remove lots of duplicate code
@
text
@#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for access/nbtree
#
# IDENTIFICATION
#    $PostgreSQL: pgsql/src/backend/access/nbtree/Makefile,v 1.15 2007/01/20 17:16:10 petere Exp $
#
#-------------------------------------------------------------------------

subdir = src/backend/access/nbtree
top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global

OBJS = nbtcompare.o nbtinsert.o nbtpage.o nbtree.o nbtsearch.o \
       nbtutils.o nbtsort.o nbtxlog.o

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


1.15
log
@Remove remains of old depend target.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/access/nbtree/Makefile,v 1.14 2003/11/29 19:51:40 pgsql Exp $
d18 1
a18 7
all: SUBSYS.o

SUBSYS.o: $(OBJS)
	$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)

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


1.14
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
#    $PostgreSQL: /cvsroot/pgsql-server/src/backend/access/nbtree/Makefile,v 1.13 2003/11/09 21:30:35 tgl Exp $
a22 3
depend dep:
	$(CC) -MM $(CFLAGS) *.c >depend

a24 5

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

@


1.13
log
@Add operator strategy and comparison-value datatype fields to ScanKey.
Remove the 'strategy map' code, which was a large amount of mechanism
that no longer had any use except reverse-mapping from procedure OID to
strategy number.  Passing the strategy number to the index AM in the
first place is simpler and faster.
This is a preliminary step in planned support for cross-datatype index
operations.  I'm committing it now since the ScanKeyEntryInitialize()
API change touches quite a lot of files, and I want to commit those
changes before the tree drifts under me.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/access/nbtree/Makefile,v 1.12 2003/02/21 00:06:21 tgl Exp $
@


1.12
log
@Make btree index structure adjustments and WAL logging changes needed to
support btree compaction, as per proposal of a few days ago.  btree index
pages no longer store parent links, instead they have a level indicator
(counting up from zero for leaf pages).  The FixBTree recovery logic is
removed, and replaced by code that detects missing parent-level insertions
during WAL replay.  Also, generate appropriate WAL entries when updating
btree metapage and when building a btree index from scratch.  I believe
btree indexes are now completely WAL-legal for the first time.
initdb forced due to index and WAL changes.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/access/nbtree/Makefile,v 1.11 2001/07/15 22:48:16 tgl Exp $
d16 1
a16 1
       nbtstrat.o nbtutils.o nbtsort.o nbtxlog.o
@


1.11
log
@Restructure index AM interface for index building and index tuple deletion,
per previous discussion on pghackers.  Most of the duplicate code in
different AMs' ambuild routines has been moved out to a common routine
in index.c; this means that all index types now do the right things about
inserting recently-dead tuples, etc.  (I also removed support for EXTEND
INDEX in the ambuild routines, since that's about to go away anyway, and
it cluttered the code a lot.)  The retail indextuple deletion routines have
been replaced by a "bulk delete" routine in which the indexscan is inside
the access method.  I haven't pushed this change as far as it should go yet,
but it should allow considerable simplification of the internal bookkeeping
for deletions.  Also, add flag columns to pg_am to eliminate various
hardcoded tests on AM OIDs, and remove unused pg_am columns.

Fix rtree and gist index types to not attempt to store NULLs; before this,
gist usually crashed, while rtree managed not to crash but computed wacko
bounding boxes for NULL entries (which might have had something to do with
the performance problems we've heard about occasionally).

Add AtEOXact routines to hash, rtree, and gist, all of which have static
state that needs to be reset after an error.  We discovered this need long
ago for btree, but missed the other guys.

Oh, one more thing: concurrent VACUUM is now the default.
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.10 2000/08/31 16:09:41 petere Exp $
d16 1
a16 1
       nbtstrat.o nbtutils.o nbtsort.o
@


1.10
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d7 1
a7 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.9 2000/05/29 05:44:39 tgl Exp $
d15 1
a15 1
OBJS = nbtcompare.o nbtinsert.o nbtpage.o nbtree.o nbtscan.o nbtsearch.o \
@


1.9
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/access/nbtree/Makefile,v 1.8 1999/12/13 22:32:28 momjian Exp $
d11 3
a13 2
SRCDIR = ../../..
include ../../../Makefile.global
@


1.8
log
@New LDOUT makefile variable for QNX os.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.7 1999/12/09 19:14:30 momjian Exp $
a12 2

CFLAGS += -I../.. 
@


1.7
log
@Make LD -r as macros that can be changed for QNX.
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.6 1998/04/06 00:21:34 momjian Exp $
d22 1
a22 1
	$(LD) $(LDREL) -o SUBSYS.o $(OBJS)
@


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/access/nbtree/Makefile,v 1.5 1997/12/20 00:22:54 scrappy Exp $
d22 1
a22 1
	$(LD) -r -o SUBSYS.o $(OBJS)
@


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/access/nbtree/Makefile,v 1.4 1997/12/17 04:31:19 scrappy Exp $
d14 1
a14 3
INCLUDE_OPT = -I../.. 

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


1.4
log
@Clean up the Makefiles

	Essentially, this cleans things up so that if PORTNAME isn't defined (I'm
    working on getting rid of it for FreeBSD, at least, to see if its possible)
    none of the PORTNAME related stuff gets passed around.

	Had a little bit of -I related redundancy as well
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/pgsql/src/backend/access/nbtree/Makefile,v 1.3 1996/11/05 10:35:27 scrappy Exp $
a14 4

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


1.3
log
@Almost done access...
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/access/nbtree/Makefile,v 1.2 1996/11/03 09:06:55 scrappy Exp $
d14 1
a14 3
INCLUDE_OPT = -I../.. \
              -I../../port/$(PORTNAME) \
              -I../../../include
d16 5
a20 1
CFLAGS+=$(INCLUDE_OPT)
@


1.2
log
@Finish cleaning up -I lines
@
text
@d7 1
a7 1
#    $Header: /usr/local/cvsroot/postgres95/src/backend/access/nbtree/Makefile,v 1.1 1996/10/27 09:46:32 bryanh Exp $
d14 2
a15 1
INCLUDE_OPT = -I../../port/$(PORTNAME) \
@


1.1
log
@Simplify make files, add full dependencies.
@
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../.. \
              -I../../port/$(PORTNAME) \
              -I../../include \
@
