diff options
Diffstat (limited to 'src/include/access')
| -rw-r--r-- | src/include/access/gist.h | 13 | ||||
| -rw-r--r-- | src/include/access/gistscan.h | 12 | ||||
| -rw-r--r-- | src/include/access/hash.h | 24 | ||||
| -rw-r--r-- | src/include/access/nbtree.h | 25 | ||||
| -rw-r--r-- | src/include/access/rtree.h | 31 |
5 files changed, 42 insertions, 63 deletions
diff --git a/src/include/access/gist.h b/src/include/access/gist.h index 8c3c7a75fd..dd8f557e9b 100644 --- a/src/include/access/gist.h +++ b/src/include/access/gist.h @@ -182,14 +182,9 @@ typedef struct intrange int flag; } INTRANGE; -extern void gistbuild(Relation heap, - Relation index, int natts, - AttrNumber *attnum, IndexStrategy istrat, - uint16 pint, Datum *params, - FuncIndexInfo *finfo, - PredInfo *predInfo); -extern InsertIndexResult gistinsert(Relation r, Datum *datum, - char *nulls, ItemPointer ht_ctid, Relation heapRel); +extern Datum gistbuild(PG_FUNCTION_ARGS); +extern Datum gistinsert(PG_FUNCTION_ARGS); +extern Datum gistdelete(PG_FUNCTION_ARGS); extern void _gistdump(Relation r); extern void gistfreestack(GISTSTACK *s); extern void initGISTstate(GISTSTATE *giststate, Relation index); @@ -198,6 +193,6 @@ extern void gistdentryinit(GISTSTATE *giststate, GISTENTRY *e, char *pr, extern StrategyNumber RelationGetGISTStrategy(Relation, AttrNumber, RegProcedure); /* gistget.c */ -extern RetrieveIndexResult gistgettuple(IndexScanDesc s, ScanDirection dir); +extern Datum gistgettuple(PG_FUNCTION_ARGS); #endif /* GIST_H */ diff --git a/src/include/access/gistscan.h b/src/include/access/gistscan.h index ef55ab3951..98498965f7 100644 --- a/src/include/access/gistscan.h +++ b/src/include/access/gistscan.h @@ -10,15 +10,15 @@ *------------------------------------------------------------------------- */ #ifndef GISTSCAN_H +#define GISTSCAN_H #include "access/relscan.h" -extern IndexScanDesc gistbeginscan(Relation r, bool fromEnd, - uint16 nkeys, ScanKey key); -extern void gistrescan(IndexScanDesc s, bool fromEnd, ScanKey key); -extern void gistmarkpos(IndexScanDesc s); -extern void gistrestrpos(IndexScanDesc s); -extern void gistendscan(IndexScanDesc s); +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); extern void gistadjscans(Relation r, int op, BlockNumber blkno, OffsetNumber offnum); #endif /* GISTSCAN_H */ diff --git a/src/include/access/hash.h b/src/include/access/hash.h index 06c0fda959..294531fdb3 100644 --- a/src/include/access/hash.h +++ b/src/include/access/hash.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: hash.h,v 1.32 2000/06/05 07:28:57 tgl Exp $ + * $Id: hash.h,v 1.33 2000/06/13 07:35:17 tgl Exp $ * * NOTES * modeled after Margo Seltzer's hash implementation for unix. @@ -248,19 +248,15 @@ typedef HashItemData *HashItem; /* public routines */ -extern void hashbuild(Relation heap, Relation index, int natts, - AttrNumber *attnum, IndexStrategy istrat, uint16 pcount, - Datum *params, FuncIndexInfo *finfo, PredInfo *predInfo); -extern InsertIndexResult hashinsert(Relation rel, Datum *datum, char *nulls, - ItemPointer ht_ctid, Relation heapRel); -extern char *hashgettuple(IndexScanDesc scan, ScanDirection dir); -extern char *hashbeginscan(Relation rel, bool fromEnd, uint16 keysz, - ScanKey scankey); -extern void hashrescan(IndexScanDesc scan, bool fromEnd, ScanKey scankey); -extern void hashendscan(IndexScanDesc scan); -extern void hashmarkpos(IndexScanDesc scan); -extern void hashrestrpos(IndexScanDesc scan); -extern void hashdelete(Relation rel, ItemPointer tid); +extern Datum hashbuild(PG_FUNCTION_ARGS); +extern Datum hashinsert(PG_FUNCTION_ARGS); +extern Datum hashgettuple(PG_FUNCTION_ARGS); +extern Datum hashbeginscan(PG_FUNCTION_ARGS); +extern Datum hashrescan(PG_FUNCTION_ARGS); +extern Datum hashendscan(PG_FUNCTION_ARGS); +extern Datum hashmarkpos(PG_FUNCTION_ARGS); +extern Datum hashrestrpos(PG_FUNCTION_ARGS); +extern Datum hashdelete(PG_FUNCTION_ARGS); /* * Datatype-specific hash functions in hashfunc.c. diff --git a/src/include/access/nbtree.h b/src/include/access/nbtree.h index 5880a4047e..8dc3a162a3 100644 --- a/src/include/access/nbtree.h +++ b/src/include/access/nbtree.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: nbtree.h,v 1.36 2000/06/08 22:37:38 momjian Exp $ + * $Id: nbtree.h,v 1.37 2000/06/13 07:35:17 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -227,21 +227,16 @@ extern void _bt_pagedel(Relation rel, ItemPointer tid); */ extern bool BuildingBtree; /* in nbtree.c */ -extern void btbuild(Relation heap, Relation index, int natts, - AttrNumber *attnum, IndexStrategy istrat, uint16 pcount, - Datum *params, FuncIndexInfo *finfo, PredInfo *predInfo); -extern InsertIndexResult btinsert(Relation rel, Datum *datum, char *nulls, - ItemPointer ht_ctid, Relation heapRel); -extern char *btgettuple(IndexScanDesc scan, ScanDirection dir); -extern char *btbeginscan(Relation rel, bool fromEnd, uint16 keysz, - ScanKey scankey); - -extern void btrescan(IndexScanDesc scan, bool fromEnd, ScanKey scankey); +extern Datum btbuild(PG_FUNCTION_ARGS); +extern Datum btinsert(PG_FUNCTION_ARGS); +extern Datum btgettuple(PG_FUNCTION_ARGS); +extern Datum btbeginscan(PG_FUNCTION_ARGS); +extern Datum btrescan(PG_FUNCTION_ARGS); extern void btmovescan(IndexScanDesc scan, Datum v); -extern void btendscan(IndexScanDesc scan); -extern void btmarkpos(IndexScanDesc scan); -extern void btrestrpos(IndexScanDesc scan); -extern void btdelete(Relation rel, ItemPointer tid); +extern Datum btendscan(PG_FUNCTION_ARGS); +extern Datum btmarkpos(PG_FUNCTION_ARGS); +extern Datum btrestrpos(PG_FUNCTION_ARGS); +extern Datum btdelete(PG_FUNCTION_ARGS); /* * prototypes for functions in nbtscan.c diff --git a/src/include/access/rtree.h b/src/include/access/rtree.h index 06de77cf2c..c5e0967f57 100644 --- a/src/include/access/rtree.h +++ b/src/include/access/rtree.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: rtree.h,v 1.17 2000/01/26 05:57:51 momjian Exp $ + * $Id: rtree.h,v 1.18 2000/06/13 07:35:17 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -104,28 +104,21 @@ typedef RTreeScanOpaqueData *RTreeScanOpaque; /* defined in rtree.c */ extern void freestack(RTSTACK *s); -/* rget.c */ -extern RetrieveIndexResult rtgettuple(IndexScanDesc s, ScanDirection dir); - /* * RTree code. * Defined in access/index-rtree/ */ -extern InsertIndexResult rtinsert(Relation r, Datum *datum, char *nulls, - ItemPointer ht_ctid, Relation heapRel); -extern char *rtdelete(Relation r, ItemPointer tid); - -extern RetrieveIndexResult rtgettuple(IndexScanDesc s, ScanDirection dir); -extern IndexScanDesc rtbeginscan(Relation r, bool fromEnd, uint16 nkeys, - ScanKey key); - -extern void rtendscan(IndexScanDesc s); -extern void rtmarkpos(IndexScanDesc s); -extern void rtrestrpos(IndexScanDesc s); -extern void rtrescan(IndexScanDesc s, bool fromEnd, ScanKey key); -extern void rtbuild(Relation heap, Relation index, int natts, - AttrNumber *attnum, IndexStrategy istrat, uint16 pcount, - Datum *params, FuncIndexInfo *finfo, PredInfo *predInfo); +extern Datum rtinsert(PG_FUNCTION_ARGS); +extern Datum rtdelete(PG_FUNCTION_ARGS); + +extern Datum rtgettuple(PG_FUNCTION_ARGS); +extern Datum rtbeginscan(PG_FUNCTION_ARGS); + +extern Datum rtendscan(PG_FUNCTION_ARGS); +extern Datum rtmarkpos(PG_FUNCTION_ARGS); +extern Datum rtrestrpos(PG_FUNCTION_ARGS); +extern Datum rtrescan(PG_FUNCTION_ARGS); +extern Datum rtbuild(PG_FUNCTION_ARGS); extern void _rtdump(Relation r); /* rtscan.c */ |
