1996-08-27 21:50:29 +00:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-13 23:22:53 +00:00
|
|
|
* gistscan.h
|
2001-05-30 19:53:40 +00:00
|
|
|
* routines defined in access/gist/gistscan.c
|
1996-08-27 21:50:29 +00:00
|
|
|
*
|
|
|
|
*
|
2001-05-30 19:53:40 +00:00
|
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1996-08-27 21:50:29 +00:00
|
|
|
*
|
2001-10-28 06:26:15 +00:00
|
|
|
* $Id: gistscan.h,v 1.18 2001/10/28 06:25:59 momjian Exp $
|
1996-08-27 21:50:29 +00:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef GISTSCAN_H
|
2000-06-13 07:35:40 +00:00
|
|
|
#define GISTSCAN_H
|
1996-08-27 21:50:29 +00:00
|
|
|
|
1999-07-15 23:04:24 +00:00
|
|
|
#include "access/relscan.h"
|
1996-11-03 12:13:35 +00:00
|
|
|
|
2000-06-13 07:35:40 +00:00
|
|
|
extern Datum gistbeginscan(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum gistrescan(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum gistmarkpos(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum gistrestrpos(PG_FUNCTION_ARGS);
|
|
|
|
extern Datum gistendscan(PG_FUNCTION_ARGS);
|
1997-09-08 02:41:22 +00:00
|
|
|
extern void gistadjscans(Relation r, int op, BlockNumber blkno, OffsetNumber offnum);
|
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.
2001-07-15 22:48:19 +00:00
|
|
|
extern void AtEOXact_gist(void);
|
2001-10-28 06:26:15 +00:00
|
|
|
|
1998-09-01 04:40:42 +00:00
|
|
|
#endif /* GISTSCAN_H */
|