Fix prototypes so they don't look like function definitions.

This commit is contained in:
Bruce Momjian 1998-01-24 22:50:57 +00:00
parent 27317a0d7c
commit 7229513943
82 changed files with 289 additions and 499 deletions

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: genam.h,v 1.10 1997/09/08 21:50:34 momjian Exp $
* $Id: genam.h,v 1.11 1998/01/24 22:47:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -25,31 +25,25 @@
extern Relation index_open(Oid relationId);
extern Relation index_openr(char *relationName);
extern void index_close(Relation relation);
extern InsertIndexResult
index_insert(Relation relation,
extern InsertIndexResult index_insert(Relation relation,
Datum *datum, char *nulls,
ItemPointer heap_t_ctid,
Relation heapRel);
extern void index_delete(Relation relation, ItemPointer indexItem);
extern IndexScanDesc
index_beginscan(Relation relation, bool scanFromEnd,
extern IndexScanDesc index_beginscan(Relation relation, bool scanFromEnd,
uint16 numberOfKeys, ScanKey key);
extern void index_rescan(IndexScanDesc scan, bool scanFromEnd, ScanKey key);
extern void index_endscan(IndexScanDesc scan);
extern RetrieveIndexResult
index_getnext(IndexScanDesc scan,
extern RetrieveIndexResult index_getnext(IndexScanDesc scan,
ScanDirection direction);
extern RegProcedure
index_getprocid(Relation irel, AttrNumber attnum,
extern RegProcedure index_getprocid(Relation irel, AttrNumber attnum,
uint16 procnum);
extern Datum
GetIndexValue(HeapTuple tuple, TupleDesc hTupDesc,
extern Datum GetIndexValue(HeapTuple tuple, TupleDesc hTupDesc,
int attOff, AttrNumber attrNums[], FuncIndexInfo *fInfo,
bool *attNull, Buffer buffer);
/* in genam.c */
extern IndexScanDesc
RelationGetIndexScan(Relation relation, bool scanFromEnd,
extern IndexScanDesc RelationGetIndexScan(Relation relation, bool scanFromEnd,
uint16 numberOfKeys, ScanKey key);
extern void IndexScanMarkPosition(IndexScanDesc scan);
extern void IndexScanRestorePosition(IndexScanDesc scan);

View File

@ -188,21 +188,18 @@ typedef struct intrange
int flag;
} INTRANGE;
extern void
gistbuild(Relation heap,
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,
extern InsertIndexResult gistinsert(Relation r, Datum *datum,
char *nulls, ItemPointer ht_ctid, Relation heapRel);
extern void _gistdump(Relation r);
extern void gistfreestack(GISTSTACK *s);
extern void initGISTstate(GISTSTATE *giststate, Relation index);
extern void
gistdentryinit(GISTSTATE *giststate, GISTENTRY *e, char *pr,
extern void gistdentryinit(GISTSTATE *giststate, GISTENTRY *e, char *pr,
Relation r, Page pg, OffsetNumber o, int b, bool l);
extern StrategyNumber RelationGetGISTStrategy(Relation, AttrNumber, RegProcedure);

View File

@ -16,8 +16,7 @@
#include <storage/block.h>
#include <utils/rel.h>
extern IndexScanDesc
gistbeginscan(Relation r, bool fromEnd,
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);

View File

@ -15,8 +15,7 @@
#include <access/strat.h>
#include <utils/rel.h>
extern StrategyNumber
RelationGetGISTStrategy(Relation r,
extern StrategyNumber RelationGetGISTStrategy(Relation r,
AttrNumber attnum, RegProcedure proc);
#endif /* GISTSTRAT_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: hash.h,v 1.11 1997/09/08 21:50:44 momjian Exp $
* $Id: hash.h,v 1.12 1998/01/24 22:47:55 momjian Exp $
*
* NOTES
* modeled after Margo Seltzer's hash implementation for unix.
@ -248,16 +248,13 @@ typedef HashItemData *HashItem;
/* public routines */
extern void
hashbuild(Relation heap, Relation index, int natts,
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,
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,
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);
@ -288,11 +285,9 @@ extern InsertIndexResult _hash_doinsert(Relation rel, HashItem hitem);
/* hashovfl.c */
extern Buffer _hash_addovflpage(Relation rel, Buffer *metabufp, Buffer buf);
extern Buffer _hash_freeovflpage(Relation rel, Buffer ovflbuf);
extern int32
_hash_initbitmap(Relation rel, HashMetaPage metap, int32 pnum,
extern int32 _hash_initbitmap(Relation rel, HashMetaPage metap, int32 pnum,
int32 nbits, int32 ndx);
extern void
_hash_squeezebucket(Relation rel, HashMetaPage metap,
extern void _hash_squeezebucket(Relation rel, HashMetaPage metap,
Bucket bucket);
@ -302,8 +297,7 @@ extern Buffer _hash_getbuf(Relation rel, BlockNumber blkno, int access);
extern void _hash_relbuf(Relation rel, Buffer buf, int access);
extern void _hash_wrtbuf(Relation rel, Buffer buf);
extern void _hash_wrtnorelbuf(Relation rel, Buffer buf);
extern Page
_hash_chgbufaccess(Relation rel, Buffer *bufp, int from_access,
extern Page _hash_chgbufaccess(Relation rel, Buffer *bufp, int from_access,
int to_access);
extern void _hash_pageinit(Page page, Size size);
extern void _hash_pagedel(Relation rel, ItemPointer tid);
@ -317,19 +311,16 @@ extern void _hash_adjscans(Relation rel, ItemPointer tid);
/* hashsearch.c */
extern void
_hash_search(Relation rel, int keysz, ScanKey scankey,
extern void _hash_search(Relation rel, int keysz, ScanKey scankey,
Buffer *bufP, HashMetaPage metap);
extern RetrieveIndexResult _hash_next(IndexScanDesc scan, ScanDirection dir);
extern RetrieveIndexResult _hash_first(IndexScanDesc scan, ScanDirection dir);
extern bool
_hash_step(IndexScanDesc scan, Buffer *bufP, ScanDirection dir,
extern bool _hash_step(IndexScanDesc scan, Buffer *bufP, ScanDirection dir,
Buffer metabuf);
/* hashutil.c */
extern ScanKey
_hash_mkscankey(Relation rel, IndexTuple itup,
extern ScanKey _hash_mkscankey(Relation rel, IndexTuple itup,
HashMetaPage metap);
extern void _hash_freeskey(ScanKey skey);
extern bool _hash_checkqual(IndexScanDesc scan, IndexTuple itup);

View File

@ -1,4 +1,4 @@
/*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*
* heapam.h--
* POSTGRES heap access method definitions.
@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: heapam.h,v 1.22 1997/11/20 23:23:31 momjian Exp $
* $Id: heapam.h,v 1.23 1998/01/24 22:47:59 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -121,26 +121,22 @@ extern void doinsert(Relation relation, HeapTuple tup);
extern Relation heap_open(Oid relationId);
extern Relation heap_openr(char *relationName);
extern void heap_close(Relation relation);
extern HeapScanDesc
heap_beginscan(Relation relation, int atend,
extern HeapScanDesc heap_beginscan(Relation relation, int atend,
bool seeself, unsigned nkeys, ScanKey key);
extern void heap_rescan(HeapScanDesc sdesc, bool scanFromEnd, ScanKey key);
extern void heap_endscan(HeapScanDesc sdesc);
extern HeapTuple heap_getnext(HeapScanDesc scandesc, int backw, Buffer *b);
extern HeapTuple
heap_fetch(Relation relation, bool seeself, ItemPointer tid, Buffer *b);
extern HeapTuple heap_fetch(Relation relation, bool seeself, ItemPointer tid, Buffer *b);
extern Oid heap_insert(Relation relation, HeapTuple tup);
extern int heap_delete(Relation relation, ItemPointer tid);
extern int
heap_replace(Relation relation, ItemPointer otid,
extern int heap_replace(Relation relation, ItemPointer otid,
HeapTuple tup);
extern void heap_markpos(HeapScanDesc sdesc);
extern void heap_restrpos(HeapScanDesc sdesc);
/* in common/heaptuple.c */
extern Size ComputeDataSize(TupleDesc tupleDesc, Datum value[], char nulls[]);
extern void
DataFill(char *data, TupleDesc tupleDesc,
extern void DataFill(char *data, TupleDesc tupleDesc,
Datum value[], char nulls[], uint16 *infomask,
bits8 *bit);
extern int heap_attisnull(HeapTuple tup, int attnum);
@ -150,11 +146,9 @@ extern Datum heap_getsysattr(HeapTuple tup, Buffer b, int attnum);
extern Datum fastgetattr(HeapTuple tup, int attnum,
TupleDesc att, bool *isnull);
extern HeapTuple heap_copytuple(HeapTuple tuple);
extern HeapTuple
heap_formtuple(TupleDesc tupleDescriptor,
extern HeapTuple heap_formtuple(TupleDesc tupleDescriptor,
Datum value[], char nulls[]);
extern HeapTuple
heap_modifytuple(HeapTuple tuple, Buffer buffer,
extern HeapTuple heap_modifytuple(HeapTuple tuple, Buffer buffer,
Relation relation, Datum replValue[], char replNull[], char repl[]);
HeapTuple heap_addheader(uint32 natts, int structlen, char *structure);
@ -163,8 +157,7 @@ extern void PrintHeapAccessStatistics(HeapAccessStatistics stats);
extern void initam(void);
/* hio.c */
extern void
RelationPutHeapTuple(Relation relation, BlockNumber blockIndex,
extern void RelationPutHeapTuple(Relation relation, BlockNumber blockIndex,
HeapTuple tuple);
extern void RelationPutHeapTupleAtEnd(Relation relation, HeapTuple tuple);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: hio.h,v 1.5 1997/09/08 02:34:11 momjian Exp $
* $Id: hio.h,v 1.6 1998/01/24 22:48:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -17,8 +17,7 @@
#include <utils/rel.h>
extern void
RelationPutHeapTuple(Relation relation, BlockNumber blockIndex,
extern void RelationPutHeapTuple(Relation relation, BlockNumber blockIndex,
HeapTuple tuple);
extern void RelationPutHeapTupleAtEnd(Relation relation, HeapTuple tuple);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: iqual.h,v 1.7 1997/09/08 21:50:48 momjian Exp $
* $Id: iqual.h,v 1.8 1998/01/24 22:48:05 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -24,8 +24,7 @@
extern int NIndexTupleProcessed;
extern bool
index_keytest(IndexTuple tuple, TupleDesc tupdesc,
extern bool index_keytest(IndexTuple tuple, TupleDesc tupdesc,
int scanKeySize, ScanKey key);
#endif /* IQUAL_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: istrat.h,v 1.8 1997/09/08 21:50:50 momjian Exp $
* $Id: istrat.h,v 1.9 1998/01/24 22:48:05 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -47,23 +47,18 @@
*/
#define IndexStrategyIsValid(s) PointerIsValid(s)
extern StrategyMap
IndexStrategyGetStrategyMap(IndexStrategy indexStrategy,
extern StrategyMap IndexStrategyGetStrategyMap(IndexStrategy indexStrategy,
StrategyNumber maxStrategyNum, AttrNumber attrNum);
extern Size
AttributeNumberGetIndexStrategySize(AttrNumber maxAttributeNumber,
extern Size AttributeNumberGetIndexStrategySize(AttrNumber maxAttributeNumber,
StrategyNumber maxStrategyNumber);
extern StrategyNumber
RelationGetStrategy(Relation relation,
extern StrategyNumber RelationGetStrategy(Relation relation,
AttrNumber attributeNumber, StrategyEvaluation evaluation,
RegProcedure procedure);
extern bool
RelationInvokeStrategy(Relation relation,
extern bool RelationInvokeStrategy(Relation relation,
StrategyEvaluation evaluation, AttrNumber attributeNumber,
StrategyNumber strategy, Datum left, Datum right);
extern void
IndexSupportInitialize(IndexStrategy indexStrategy,
extern void IndexSupportInitialize(IndexStrategy indexStrategy,
RegProcedure *indexSupport, Oid indexObjectId,
Oid accessMethodObjectId, StrategyNumber maxStrategyNumber,
StrategyNumber maxSupportNumber, AttrNumber maxAttributeNumber);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: itup.h,v 1.8 1997/09/08 21:50:53 momjian Exp $
* $Id: itup.h,v 1.9 1998/01/24 22:48:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -89,14 +89,11 @@ typedef struct PredInfo
/* indextuple.h */
extern IndexTuple
index_formtuple(TupleDesc tupleDescriptor,
extern IndexTuple index_formtuple(TupleDesc tupleDescriptor,
Datum value[], char null[]);
extern Datum
index_getattr(IndexTuple tuple, AttrNumber attNum,
extern Datum index_getattr(IndexTuple tuple, AttrNumber attNum,
TupleDesc tupDesc, bool *isNullOutP);
extern RetrieveIndexResult
FormRetrieveIndexResult(ItemPointer indexItemPointer,
extern RetrieveIndexResult FormRetrieveIndexResult(ItemPointer indexItemPointer,
ItemPointer heapItemPointer);
extern void CopyIndexTuple(IndexTuple source, IndexTuple *target);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nbtree.h,v 1.18 1997/09/08 21:50:55 momjian Exp $
* $Id: nbtree.h,v 1.19 1998/01/24 22:48:07 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -213,13 +213,11 @@ typedef struct BTPageState
/*
* prototypes for functions in nbtinsert.c
*/
extern InsertIndexResult
_bt_doinsert(Relation rel, BTItem btitem,
extern InsertIndexResult _bt_doinsert(Relation rel, BTItem btitem,
bool index_is_unique, Relation heapRel);
/* default is to allow duplicates */
extern bool
_bt_itemcmp(Relation rel, Size keysz, BTItem item1, BTItem item2,
extern bool _bt_itemcmp(Relation rel, Size keysz, BTItem item1, BTItem item2,
StrategyNumber strat);
/*
@ -241,16 +239,13 @@ extern void _bt_pagedel(Relation rel, ItemPointer tid);
*/
extern bool BuildingBtree; /* in nbtree.c */
extern void
btbuild(Relation heap, Relation index, int natts,
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,
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,
extern char * btbeginscan(Relation rel, bool fromEnd, uint16 keysz,
ScanKey scankey);
extern void btrescan(IndexScanDesc scan, bool fromEnd, ScanKey scankey);
@ -270,17 +265,13 @@ extern void _bt_adjscans(Relation rel, ItemPointer tid, int op);
/*
* prototypes for functions in nbtsearch.c
*/
extern BTStack
_bt_search(Relation rel, int keysz, ScanKey scankey,
extern BTStack _bt_search(Relation rel, int keysz, ScanKey scankey,
Buffer *bufP);
extern Buffer
_bt_moveright(Relation rel, Buffer buf, int keysz,
extern Buffer _bt_moveright(Relation rel, Buffer buf, int keysz,
ScanKey scankey, int access);
extern bool
_bt_skeycmp(Relation rel, Size keysz, ScanKey scankey,
extern bool _bt_skeycmp(Relation rel, Size keysz, ScanKey scankey,
Page page, ItemId itemid, StrategyNumber strat);
extern OffsetNumber
_bt_binsrch(Relation rel, Buffer buf, int keysz,
extern OffsetNumber _bt_binsrch(Relation rel, Buffer buf, int keysz,
ScanKey scankey, int srchtype);
extern RetrieveIndexResult _bt_next(IndexScanDesc scan, ScanDirection dir);
extern RetrieveIndexResult _bt_first(IndexScanDesc scan, ScanDirection dir);
@ -289,11 +280,9 @@ extern bool _bt_step(IndexScanDesc scan, Buffer *bufP, ScanDirection dir);
/*
* prototypes for functions in nbtstrat.c
*/
extern StrategyNumber
_bt_getstrat(Relation rel, AttrNumber attno,
extern StrategyNumber _bt_getstrat(Relation rel, AttrNumber attno,
RegProcedure proc);
extern bool
_bt_invokestrat(Relation rel, AttrNumber attno,
extern bool _bt_invokestrat(Relation rel, AttrNumber attno,
StrategyNumber strat, Datum left, Datum right);
/*

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rtree.h,v 1.10 1997/09/08 21:50:58 momjian Exp $
* $Id: rtree.h,v 1.11 1998/01/24 22:48:08 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -114,34 +114,29 @@ extern RetrieveIndexResult rtgettuple(IndexScanDesc s, ScanDirection dir);
* RTree code.
* Defined in access/index-rtree/
*/
extern InsertIndexResult
rtinsert(Relation r, Datum *datum, char *nulls,
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,
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,
extern void rtbuild(Relation heap, Relation index, int natts,
AttrNumber *attnum, IndexStrategy istrat, uint16 pcount,
Datum *params, FuncIndexInfo *finfo, PredInfo *predInfo);
extern void _rtdump(Relation r);
/* rtscan.c */
extern void
rtadjscans(Relation r, int op, BlockNumber blkno,
extern void rtadjscans(Relation r, int op, BlockNumber blkno,
OffsetNumber offnum);
/* rtstrat.h */
extern RegProcedure
RTMapOperator(Relation r, AttrNumber attnum,
extern RegProcedure RTMapOperator(Relation r, AttrNumber attnum,
RegProcedure proc);
#endif /* RTREE_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rtstrat.h,v 1.5 1997/11/26 01:12:08 momjian Exp $
* $Id: rtstrat.h,v 1.6 1998/01/24 22:48:08 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -16,8 +16,7 @@
#include <utils/rel.h>
#include <access/attnum.h>
extern RegProcedure
RTMapOperator(Relation r, AttrNumber attnum,
extern RegProcedure RTMapOperator(Relation r, AttrNumber attnum,
RegProcedure proc);
#endif /* RTSTRAT_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: skey.h,v 1.7 1998/01/15 19:46:18 pgsql Exp $
* $Id: skey.h,v 1.8 1998/01/24 22:48:10 momjian Exp $
*
*
* Note:
@ -46,8 +46,7 @@ typedef ScanKeyData *ScanKey;
* prototypes for functions in access/common/scankey.c
*/
extern void ScanKeyEntrySetIllegal(ScanKey entry);
extern void
ScanKeyEntryInitialize(ScanKey entry, bits16 flags,
extern void ScanKeyEntryInitialize(ScanKey entry, bits16 flags,
AttrNumber attributeNumber, RegProcedure procedure, Datum argument);
#endif /* SKEY_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: transam.h,v 1.12 1997/11/02 15:26:44 vadim Exp $
* $Id: transam.h,v 1.13 1998/01/24 22:48:11 momjian Exp $
*
* NOTES
* Transaction System Version 101 now support proper oid
@ -130,14 +130,11 @@ extern void TransactionIdAbort(TransactionId transactionId);
/* in transam/transsup.c */
extern void AmiTransactionOverride(bool flag);
extern void
TransComputeBlockNumber(Relation relation,
extern void TransComputeBlockNumber(Relation relation,
TransactionId transactionId, BlockNumber *blockNumberOutP);
extern XidStatus
TransBlockNumberGetXidStatus(Relation relation,
extern XidStatus TransBlockNumberGetXidStatus(Relation relation,
BlockNumber blockNumber, TransactionId xid, bool *failP);
extern void
TransBlockNumberSetXidStatus(Relation relation,
extern void TransBlockNumberSetXidStatus(Relation relation,
BlockNumber blockNumber, TransactionId xid, XidStatus xstatus,
bool *failP);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: tupdesc.h,v 1.12 1997/09/08 21:51:04 momjian Exp $
* $Id: tupdesc.h,v 1.13 1998/01/24 22:48:12 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -65,8 +65,7 @@ extern TupleDesc CreateTupleDescCopyConstr(TupleDesc tupdesc);
extern void FreeTupleDesc(TupleDesc tupdesc);
extern bool
TupleDescInitEntry(TupleDesc desc,
extern bool TupleDescInitEntry(TupleDesc desc,
AttrNumber attributeNumber,
char *attributeName,
char *typeName,

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: bootstrap.h,v 1.9 1997/09/08 21:51:08 momjian Exp $
* $Id: bootstrap.h,v 1.10 1998/01/24 22:48:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -33,8 +33,7 @@ extern int numattr;
extern int DebugMode;
extern int BootstrapMain(int ac, char *av[]);
extern void
index_register(char *heap,
extern void index_register(char *heap,
char *ind,
int natts,
AttrNumber *attnos,

View File

@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: c.h,v 1.27 1997/11/10 05:10:34 momjian Exp $
* $Id: c.h,v 1.28 1998/01/24 22:47:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -732,8 +732,7 @@ extern Exception BadArg;
extern Exception BadState;
/* in utils/error/assert.c */
extern int
ExceptionalCondition(char *conditionName,
extern int ExceptionalCondition(char *conditionName,
Exception *exceptionP, char *details,
char *fileName, int lineNumber);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: heap.h,v 1.10 1997/11/28 17:28:02 momjian Exp $
* $Id: heap.h,v 1.11 1998/01/24 22:48:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -17,8 +17,7 @@
extern Relation heap_create(char *relname, TupleDesc att);
extern Oid
heap_create_with_catalog(char relname[], TupleDesc tupdesc);
extern Oid heap_create_with_catalog(char relname[], TupleDesc tupdesc);
extern void heap_destroy_with_catalog(char relname[]);
extern void heap_destroy(Relation r);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: index.h,v 1.8 1997/09/08 21:51:20 momjian Exp $
* $Id: index.h,v 1.9 1998/01/24 22:48:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -18,19 +18,15 @@
#include <access/itup.h>
#include <access/funcindex.h>
extern Form_pg_am
AccessMethodObjectIdGetAccessMethodTupleForm(Oid accessMethodObjectId);
extern Form_pg_am AccessMethodObjectIdGetAccessMethodTupleForm(Oid accessMethodObjectId);
extern void
UpdateIndexPredicate(Oid indexoid, Node *oldPred, Node *predicate);
extern void UpdateIndexPredicate(Oid indexoid, Node *oldPred, Node *predicate);
extern void
InitIndexStrategy(int numatts,
extern void InitIndexStrategy(int numatts,
Relation indexRelation,
Oid accessMethodObjectId);
extern void
index_create(char *heapRelationName,
extern void index_create(char *heapRelationName,
char *indexRelationName,
FuncIndexInfo *funcInfo,
List *attributeList,
@ -46,20 +42,17 @@ index_create(char *heapRelationName,
extern void index_destroy(Oid indexId);
extern void
FormIndexDatum(int numberOfAttributes,
extern void FormIndexDatum(int numberOfAttributes,
AttrNumber attributeNumber[], HeapTuple heapTuple,
TupleDesc heapDescriptor, Buffer buffer, Datum *datum,
char *nullv, FuncIndexInfoPtr fInfo);
extern void UpdateStats(Oid relid, long reltuples, bool hasindex);
extern void
FillDummyExprContext(ExprContext *econtext, TupleTableSlot *slot,
extern void FillDummyExprContext(ExprContext *econtext, TupleTableSlot *slot,
TupleDesc tupdesc, Buffer buffer);
extern void
index_build(Relation heapRelation, Relation indexRelation,
extern void index_build(Relation heapRelation, Relation indexRelation,
int numberOfAttributes, AttrNumber attributeNumber[],
uint16 parameterCount, Datum *parameter, FuncIndexInfo *funcInfo,
PredInfo *predInfo);

View File

@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: indexing.h,v 1.13 1998/01/11 21:03:01 momjian Exp $
* $Id: indexing.h,v 1.14 1998/01/24 22:48:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -66,25 +66,21 @@ extern char *IndexedCatalogNames[];
*/
extern void CatalogOpenIndices(int nIndices, char *names[], Relation idescs[]);
extern void CatalogCloseIndices(int nIndices, Relation *idescs);
extern void
CatalogIndexInsert(Relation *idescs,
extern void CatalogIndexInsert(Relation *idescs,
int nIndices,
Relation heapRelation,
HeapTuple heapTuple);
extern bool CatalogHasIndex(char *catName, Oid catId);
extern HeapTuple
AttributeNameIndexScan(Relation heapRelation,
extern HeapTuple AttributeNameIndexScan(Relation heapRelation,
Oid relid,
char *attname);
extern HeapTuple
AttributeNumIndexScan(Relation heapRelation,
extern HeapTuple AttributeNumIndexScan(Relation heapRelation,
Oid relid,
AttrNumber attnum);
extern HeapTuple ProcedureOidIndexScan(Relation heapRelation, Oid procId);
extern HeapTuple
ProcedureNameIndexScan(Relation heapRelation,
extern HeapTuple ProcedureNameIndexScan(Relation heapRelation,
char *procName, int nargs, Oid *argTypes);
extern HeapTuple ProcedureSrcIndexScan(Relation heapRelation, text *procSrc);
extern HeapTuple TypeOidIndexScan(Relation heapRelation, Oid typeId);

View File

@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_aggregate.h,v 1.12 1997/10/15 01:08:25 thomas Exp $
* $Id: pg_aggregate.h,v 1.13 1998/01/24 22:48:31 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
@ -129,8 +129,7 @@ DATA(insert OID = 0 ( count PGUID - int4inc - 0 0 23 23 _null_ 0 ));
/*
* prototypes for functions in pg_aggregate.c
*/
extern void
AggregateCreate(char *aggName,
extern void AggregateCreate(char *aggName,
char *aggtransfn1Name,
char *aggtransfn2Name,
char *aggfinalfnName,
@ -139,8 +138,7 @@ AggregateCreate(char *aggName,
char *aggtransfn2typeName,
char *agginitval1,
char *agginitval2);
extern char *
AggNameGetInitVal(char *aggName, Oid basetype,
extern char * AggNameGetInitVal(char *aggName, Oid basetype,
int xfuncno, bool *isNull);
#endif /* PG_AGGREGATE_H */

View File

@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_operator.h,v 1.22 1997/11/30 22:49:22 thomas Exp $
* $Id: pg_operator.h,v 1.23 1998/01/24 22:48:36 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
@ -652,8 +652,7 @@ DATA(insert OID = 1585 ( "/" PGUID 0 b t f 1186 1186 1186 0 0 0 0 timespan
/*
* function prototypes
*/
extern void
OperatorCreate(char *operatorName,
extern void OperatorCreate(char *operatorName,
char *leftTypeName,
char *rightTypeName,
char *procedureName,

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_proc.h,v 1.42 1998/01/01 05:47:11 thomas Exp $
* $Id: pg_proc.h,v 1.43 1998/01/24 22:48:41 momjian Exp $
*
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
@ -2054,8 +2054,7 @@ DESCR("sequence current value");
/*
* prototypes for functions pg_proc.c
*/
extern Oid
ProcedureCreate(char *procedureName,
extern Oid ProcedureCreate(char *procedureName,
bool returnsSet,
char *returnTypeName,
char *languageName,

View File

@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_type.h,v 1.27 1998/01/19 02:37:47 momjian Exp $
* $Id: pg_type.h,v 1.28 1998/01/24 22:48:42 momjian Exp $
*
* NOTES
* the genbki.sh script reads this file and generates .bki
@ -372,8 +372,7 @@ DESCR("limited-range ISO-format date and time");
*/
extern Oid TypeGet(char *typeName, bool *defined);
extern Oid TypeShellMake(char *typeName);
extern Oid
TypeCreate(char *typeName,
extern Oid TypeCreate(char *typeName,
Oid relationOid,
int16 internalSize,
int16 externalSize,

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: command.h,v 1.7 1997/09/08 21:51:34 momjian Exp $
* $Id: command.h,v 1.8 1998/01/24 22:48:44 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -26,8 +26,7 @@ extern MemoryContext PortalExecutorHeapMemory;
* BadArg if forward invalid.
* "WARN" if portal not found.
*/
extern void
PerformPortalFetch(char *name, bool forward, int count,
extern void PerformPortalFetch(char *name, bool forward, int count,
char *tag, CommandDest dest);
/*
@ -42,8 +41,7 @@ extern void PortalCleanup(Portal portal);
* PerformAddAttribute --
* Performs the POSTQUEL function ADD.
*/
extern void
PerformAddAttribute(char *relationName, char *userName,
extern void PerformAddAttribute(char *relationName, char *userName,
bool inh, ColumnDef *colDef);
#endif /* COMMAND_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: defrem.h,v 1.10 1997/09/08 21:51:36 momjian Exp $
* $Id: defrem.h,v 1.11 1998/01/24 22:48:45 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -19,8 +19,7 @@
/*
* prototypes in defind.c
*/
extern void
DefineIndex(char *heapRelationName,
extern void DefineIndex(char *heapRelationName,
char *indexRelationName,
char *accessMethodName,
List *attributeList,
@ -28,8 +27,7 @@ DefineIndex(char *heapRelationName,
bool unique,
Expr *predicate,
List *rangetable);
extern void
ExtendIndex(char *indexRelationName,
extern void ExtendIndex(char *indexRelationName,
Expr *predicate,
List *rangetable);
extern void RemoveIndex(char *name);
@ -47,8 +45,7 @@ extern void CreateFunction(ProcedureStmt *stmt, CommandDest dest);
* prototypes in remove.c
*/
extern void RemoveFunction(char *functionName, int nargs, List *argNameList);
extern void
RemoveOperator(char *operatorName,
extern void RemoveOperator(char *operatorName,
char *typeName1, char *typeName2);
extern void RemoveType(char *typeName);
extern void RemoveAggregate(char *aggName, char *aggType);

View File

@ -6,21 +6,19 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rename.h,v 1.2 1997/09/07 04:57:30 momjian Exp $
* $Id: rename.h,v 1.3 1998/01/24 22:48:46 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef RENAME_H
#define RENAME_H
extern void
renameatt(char *relname,
extern void renameatt(char *relname,
char *oldattname,
char *newattname,
char *userName, int recurse);
extern void
renamerel(char *oldrelname,
extern void renamerel(char *oldrelname,
char *newrelname);
#endif /* RENAME_H */

View File

@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: execdesc.h,v 1.6 1997/09/08 21:51:50 momjian Exp $
* $Id: execdesc.h,v 1.7 1998/01/24 22:48:50 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -33,8 +33,7 @@ typedef struct QueryDesc
} QueryDesc;
/* in pquery.c */
extern QueryDesc *
CreateQueryDesc(Query *parsetree, Plan *plantree,
extern QueryDesc * CreateQueryDesc(Query *parsetree, Plan *plantree,
CommandDest dest);
#endif /* EXECDESC_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: functions.h,v 1.5 1997/11/26 01:12:38 momjian Exp $
* $Id: functions.h,v 1.6 1998/01/24 22:48:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -18,12 +18,10 @@
#include "nodes/primnodes.h"
#include "utils/syscache.h"
extern Datum
ProjectAttribute(TupleDesc TD, TargetEntry *tlist,
extern Datum ProjectAttribute(TupleDesc TD, TargetEntry *tlist,
HeapTuple tup, bool *isnullP);
extern Datum
postquel_function(Func *funcNode, char **args,
extern Datum postquel_function(Func *funcNode, char **args,
bool *isNull, bool *isDone);
#endif /* FUNCTIONS_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeHash.h,v 1.6 1997/11/26 01:26:13 momjian Exp $
* $Id: nodeHash.h,v 1.7 1998/01/24 22:49:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -26,15 +26,12 @@ extern bool ExecInitHash(Hash *node, EState *estate, Plan *parent);
extern int ExecCountSlotsHash(Hash *node);
extern void ExecEndHash(Hash *node);
extern HashJoinTable ExecHashTableCreate(Hash *node);
extern void
ExecHashTableInsert(HashJoinTable hashtable, ExprContext *econtext,
extern void ExecHashTableInsert(HashJoinTable hashtable, ExprContext *econtext,
Var *hashkey, File *batches);
extern void ExecHashTableDestroy(HashJoinTable hashtable);
extern int
ExecHashGetBucket(HashJoinTable hashtable, ExprContext *econtext,
extern int ExecHashGetBucket(HashJoinTable hashtable, ExprContext *econtext,
Var *hashkey);
extern HeapTuple
ExecScanHashBucket(HashJoinState *hjstate, HashBucket bucket,
extern HeapTuple ExecScanHashBucket(HashJoinState *hjstate, HashBucket bucket,
HeapTuple curtuple, List *hjclauses,
ExprContext *econtext);
extern void ExecHashTableReset(HashJoinTable hashtable, int ntuples);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: nodeHashjoin.h,v 1.6 1997/11/26 01:12:50 momjian Exp $
* $Id: nodeHashjoin.h,v 1.7 1998/01/24 22:49:04 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -21,8 +21,7 @@ extern TupleTableSlot *ExecHashJoin(HashJoin *node);
extern bool ExecInitHashJoin(HashJoin *node, EState *estate, Plan *parent);
extern int ExecCountSlotsHashJoin(HashJoin *node);
extern void ExecEndHashJoin(HashJoin *node);
extern char *
ExecHashJoinSaveTuple(HeapTuple heapTuple, char *buffer,
extern char * ExecHashJoinSaveTuple(HeapTuple heapTuple, char *buffer,
File file, char *position);

View File

@ -78,8 +78,7 @@ extern void *SPI_prepare(char *src, int nargs, Oid * argtypes);
extern void *SPI_saveplan(void *plan);
extern HeapTuple SPI_copytuple(HeapTuple tuple);
extern HeapTuple
SPI_modifytuple(Relation rel, HeapTuple tuple, int natts,
extern HeapTuple SPI_modifytuple(Relation rel, HeapTuple tuple, int natts,
int *attnum, Datum * Values, char *Nulls);
extern int SPI_fnumber(TupleDesc tupdesc, char *fname);
extern char *SPI_fname(TupleDesc tupdesc, int fnumber);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: qsort.h,v 1.3 1997/09/07 04:58:13 momjian Exp $
* $Id: qsort.h,v 1.4 1998/01/24 22:49:12 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -14,8 +14,7 @@
#define QSORT_H
extern void
pg_qsort(void *bot,
extern void pg_qsort(void *bot,
size_t nmemb,
size_t size,
int (*compar) (void *, void *));

View File

@ -4,7 +4,7 @@
* Interface to hba.c
*
*
* $Id: hba.h,v 1.5 1997/09/08 21:52:34 momjian Exp $
* $Id: hba.h,v 1.6 1998/01/24 22:49:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -42,8 +42,7 @@ enum Userauth
Password
};
extern int
hba_recvauth(const Port *port, const char database[], const char user[],
extern int hba_recvauth(const Port *port, const char database[], const char user[],
const char DataDir[]);
void
find_hba_entry(const char DataDir[], const struct in_addr ip_addr,

View File

@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq-be.h,v 1.7 1997/09/08 21:52:35 momjian Exp $
* $Id: libpq-be.h,v 1.8 1998/01/24 22:49:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -35,15 +35,13 @@ extern void be_portalpush(PortalEntry *entry);
extern PortalEntry *be_portalpop(void);
extern PortalEntry *be_currentportal(void);
extern PortalEntry *be_newportal(void);
extern void
be_typeinit(PortalEntry *entry, TupleDesc attrs,
extern void be_typeinit(PortalEntry *entry, TupleDesc attrs,
int natts);
extern void be_printtup(HeapTuple tuple, TupleDesc typeinfo);
/* in be-pqexec.c */
extern char *
PQfn(int fnid, int *result_buf, int result_len, int result_is_int,
extern char * PQfn(int fnid, int *result_buf, int result_len, int result_is_int,
PQArgBlock *args, int nargs);
extern char *PQexec(char *query);
extern int pqtest_PQexec(char *q);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq.h,v 1.8 1997/09/08 21:52:36 momjian Exp $
* $Id: libpq.h,v 1.9 1998/01/24 22:49:21 momjian Exp $
*
* NOTES
* This file contains definitions for structures and
@ -179,11 +179,9 @@ extern int PQninstancesGroup(PortalBuffer *portal, int group_index);
extern int PQnfieldsGroup(PortalBuffer *portal, int group_index);
extern int PQfnumberGroup(PortalBuffer *portal, int group_index, char *field_name);
extern char *PQfnameGroup(PortalBuffer *portal, int group_index, int field_number);
extern int
PQftypeGroup(PortalBuffer *portal, int group_index,
extern int PQftypeGroup(PortalBuffer *portal, int group_index,
int field_number);
extern int
PQfsizeGroup(PortalBuffer *portal, int group_index,
extern int PQfsizeGroup(PortalBuffer *portal, int group_index,
int field_number);
extern GroupBuffer *PQgroup(PortalBuffer *portal, int tuple_index);
extern int PQgetgroup(PortalBuffer *portal, int tuple_index);
@ -250,8 +248,7 @@ extern int pq_sendoob(char *msg, int len);
extern int pq_recvoob(char *msgPtr, int *lenPtr);
extern int pq_getinaddr(struct sockaddr_in * sin, char *host, int port);
extern int pq_getinserv(struct sockaddr_in * sin, char *host, char *serv);
extern int
pq_connect(char *dbname, char *user, char *args, char *hostName,
extern int pq_connect(char *dbname, char *user, char *args, char *hostName,
char *debugTty, char *execFile, short portName);
extern int StreamOpen(char *hostName, short portName, Port *port);
extern void pq_regoob(void (*fptr) ());

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.h,v 1.17 1997/12/04 00:27:56 scrappy Exp $
* $Id: pqcomm.h,v 1.18 1998/01/24 22:49:23 momjian Exp $
*
* NOTES
* Some of this should move to libpq.h
@ -164,8 +164,7 @@ int pqPutByte(int, FILE *);
* prototypes for functions in pqpacket.c
*/
extern int PacketReceive(Port *port, PacketBuf *buf, char nonBlocking);
extern int
PacketSend(Port *port, PacketBuf *buf,
extern int PacketSend(Port *port, PacketBuf *buf,
PacketLen len, char nonBlocking);
/* extern PacketBuf* StartupInfo2PacketBuf(StartupInfo*); */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: makefuncs.h,v 1.6 1998/01/20 22:12:13 momjian Exp $
* $Id: makefuncs.h,v 1.7 1998/01/24 22:49:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -16,23 +16,20 @@
#include <nodes/primnodes.h>
#include <utils/fcache.h>
extern Oper *
makeOper(Oid opno,
extern Oper * makeOper(Oid opno,
Oid opid,
Oid opresulttype,
int opsize,
FunctionCachePtr op_fcache);
extern Var *
makeVar(Index varno,
extern Var * makeVar(Index varno,
AttrNumber varattno,
Oid vartype,
Index varlevelsup,
Index varnoold,
AttrNumber varoattno);
extern Resdom *
makeResdom(AttrNumber resno,
extern Resdom * makeResdom(AttrNumber resno,
Oid restype,
int reslen,
char *resname,
@ -40,8 +37,7 @@ makeResdom(AttrNumber resno,
Oid reskeyop,
int resjunk);
extern Const *
makeConst(Oid consttype,
extern Const * makeConst(Oid consttype,
Size constlen,
Datum constvalue,
bool constisnull,

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: print.h,v 1.5 1997/09/08 21:52:59 momjian Exp $
* $Id: print.h,v 1.6 1998/01/24 22:49:28 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -26,8 +26,7 @@ extern void print_expr(Node *expr, List *rtable);
extern void print_keys(List *keys, List *rtable);
extern void print_tl(List *tlist, List *rtable);
extern void print_slot(TupleTableSlot *slot);
extern void
print_plan_recursive(Plan *p, Query *parsetree,
extern void print_plan_recursive(Plan *p, Query *parsetree,
int indentLevel, char *label);
extern void print_plan(Plan *p, Query *parsetree);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: clauseinfo.h,v 1.5 1997/11/26 01:13:12 momjian Exp $
* $Id: clauseinfo.h,v 1.6 1998/01/24 22:49:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -18,11 +18,9 @@
extern bool valid_or_clause(CInfo *clauseinfo);
extern List *get_actual_clauses(List *clauseinfo_list);
extern void
get_relattvals(List *clauseinfo_list, List **attnos,
extern void get_relattvals(List *clauseinfo_list, List **attnos,
List **values, List **flags);
extern void
get_joinvars(Oid relid, List *clauseinfo_list,
extern void get_joinvars(Oid relid, List *clauseinfo_list,
List **attnos, List **values, List **flags);
extern List *get_opnos(List *clauseinfo_list);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: clauses.h,v 1.7 1997/09/08 21:53:06 momjian Exp $
* $Id: clauses.h,v 1.8 1998/01/24 22:49:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -42,11 +42,9 @@ extern bool join_clause_p(Node *clause);
extern bool qual_clause_p(Node *clause);
extern void fix_opid(Node *clause);
extern List *fix_opids(List *clauses);
extern void
get_relattval(Node *clause, int *relid,
extern void get_relattval(Node *clause, int *relid,
AttrNumber *attno, Datum *constval, int *flag);
extern void
get_rels_atts(Node *clause, int *relid1,
extern void get_rels_atts(Node *clause, int *relid1,
AttrNumber *attno1, int *relid2, AttrNumber *attno2);
extern void CommuteClause(Node *clause);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: cost.h,v 1.6 1997/11/26 01:13:16 momjian Exp $
* $Id: cost.h,v 1.7 1998/01/24 22:49:41 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -31,20 +31,16 @@ extern bool _enable_mergesort_;
extern bool _enable_hashjoin_;
extern Cost cost_seqscan(int relid, int relpages, int reltuples);
extern Cost
cost_index(Oid indexid, int expected_indexpages, Cost selec,
extern Cost cost_index(Oid indexid, int expected_indexpages, Cost selec,
int relpages, int reltuples, int indexpages,
int indextuples, bool is_injoin);
extern Cost cost_sort(List *keys, int tuples, int width, bool noread);
extern Cost
cost_nestloop(Cost outercost, Cost innercost, int outertuples,
extern Cost cost_nestloop(Cost outercost, Cost innercost, int outertuples,
int innertuples, int outerpages, bool is_indexjoin);
extern Cost
cost_mergesort(Cost outercost, Cost innercost,
extern Cost cost_mergesort(Cost outercost, Cost innercost,
List *outersortkeys, List *innersortkeys,
int outersize, int innersize, int outerwidth, int innerwidth);
extern Cost
cost_hashjoin(Cost outercost, Cost innercost, List *outerkeys,
extern Cost cost_hashjoin(Cost outercost, Cost innercost, List *outerkeys,
List *innerkeys, int outersize, int innersize,
int outerwidth, int innerwidth);
extern int compute_rel_size(Rel *rel);
@ -60,8 +56,7 @@ extern void set_clause_selectivities(List *clauseinfo_list, Cost new_selectivity
extern Cost product_selec(List *clauseinfo_list);
extern void set_rest_relselec(Query *root, List *rel_list);
extern void set_rest_selec(Query *root, List *clauseinfo_list);
extern Cost
compute_clause_selec(Query *root,
extern Cost compute_clause_selec(Query *root,
Node *clause, List *or_selectivities);
#endif /* COST_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: ordering.h,v 1.6 1997/09/08 21:53:19 momjian Exp $
* $Id: ordering.h,v 1.7 1998/01/24 22:49:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -15,14 +15,11 @@
#include <nodes/relation.h>
extern bool
equal_path_path_ordering(PathOrder *path_ordering1,
extern bool equal_path_path_ordering(PathOrder *path_ordering1,
PathOrder *path_ordering2);
extern bool
equal_path_merge_ordering(Oid *path_ordering,
extern bool equal_path_merge_ordering(Oid *path_ordering,
MergeOrder *merge_ordering);
extern bool
equal_merge_merge_ordering(MergeOrder *merge_ordering1,
extern bool equal_merge_merge_ordering(MergeOrder *merge_ordering1,
MergeOrder *merge_ordering2);
#endif /* ORDERING_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pathnode.h,v 1.5 1997/11/26 01:13:46 momjian Exp $
* $Id: pathnode.h,v 1.6 1998/01/24 22:49:46 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -22,24 +22,19 @@
*/
extern bool path_is_cheaper(Path *path1, Path *path2);
extern Path *set_cheapest(Rel *parent_rel, List *pathlist);
extern List *
add_pathlist(Rel *parent_rel, List *unique_paths,
extern List * add_pathlist(Rel *parent_rel, List *unique_paths,
List *new_paths);
extern Path *create_seqscan_path(Rel *rel);
extern IndexPath *
create_index_path(Query *root, Rel *rel, Rel *index,
extern IndexPath * create_index_path(Query *root, Rel *rel, Rel *index,
List *restriction_clauses, bool is_join_scan);
extern JoinPath *
create_nestloop_path(Rel *joinrel, Rel *outer_rel,
extern JoinPath * create_nestloop_path(Rel *joinrel, Rel *outer_rel,
Path *outer_path, Path *inner_path, List *keys);
extern MergePath *
create_mergesort_path(Rel *joinrel, int outersize,
extern MergePath * create_mergesort_path(Rel *joinrel, int outersize,
int innersize, int outerwidth, int innerwidth, Path *outer_path,
Path *inner_path, List *keys, MergeOrder *order,
List *mergeclauses, List *outersortkeys, List *innersortkeys);
extern HashPath *
create_hashjoin_path(Rel *joinrel, int outersize,
extern HashPath * create_hashjoin_path(Rel *joinrel, int outersize,
int innersize, int outerwidth, int innerwidth, Path *outer_path,
Path *inner_path, List *keys, Oid operator, List *hashclauses,
List *outerkeys, List *innerkeys);

View File

@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: paths.h,v 1.6 1997/12/21 05:18:48 momjian Exp $
* $Id: paths.h,v 1.7 1998/01/24 22:49:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -27,8 +27,7 @@ extern List *find_paths(Query *root, List *rels);
* indxpath.h
* routines to generate index paths
*/
extern List *
find_index_paths(Query *root, Rel *rel, List *indices,
extern List * find_index_paths(Query *root, Rel *rel, List *indices,
List *clauseinfo_list,
List *joininfo_list);
@ -48,37 +47,30 @@ extern List *create_or_index_paths(Query *root, Rel *rel, List *clauses);
* hashutils.h
* routines to deal with hash keys and clauses
*/
extern List *
group_clauses_by_hashop(List *clauseinfo_list,
extern List * group_clauses_by_hashop(List *clauseinfo_list,
int inner_relid);
/*
* joinutils.h
* generic join method key/clause routines
*/
extern List *
match_pathkeys_joinkeys(List *pathkeys,
extern List * match_pathkeys_joinkeys(List *pathkeys,
List *joinkeys, List *joinclauses, int which_subkey,
List **matchedJoinClausesPtr);
extern List *
extract_path_keys(List *joinkeys, List *tlist,
extern List * extract_path_keys(List *joinkeys, List *tlist,
int which_subkey);
extern Path *
match_paths_joinkeys(List *joinkeys, PathOrder *ordering,
extern Path * match_paths_joinkeys(List *joinkeys, PathOrder *ordering,
List *paths, int which_subkey);
extern List *
new_join_pathkeys(List *outer_pathkeys,
extern List * new_join_pathkeys(List *outer_pathkeys,
List *join_rel_tlist, List *joinclauses);
/*
* mergeutils.h
* routines to deal with merge keys and clauses
*/
extern List *
group_clauses_by_order(List *clauseinfo_list,
extern List * group_clauses_by_order(List *clauseinfo_list,
int inner_relid);
extern MInfo *
match_order_mergeinfo(PathOrder *ordering,
extern MInfo * match_order_mergeinfo(PathOrder *ordering,
List *mergeinfo_list);
/*

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: plancat.h,v 1.6 1997/09/08 21:53:27 momjian Exp $
* $Id: plancat.h,v 1.7 1998/01/24 22:49:50 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -34,31 +34,26 @@ typedef struct IdxInfoRetval
} IdxInfoRetval;
extern void
relation_info(Query *root,
extern void relation_info(Query *root,
Oid relid,
bool *hashindex, int *pages,
int *tuples);
extern bool
index_info(Query *root,
extern bool index_info(Query *root,
bool first, int relid, IdxInfoRetval *info);
extern Cost
restriction_selectivity(Oid functionObjectId,
extern Cost restriction_selectivity(Oid functionObjectId,
Oid operatorObjectId,
Oid relationObjectId,
AttrNumber attributeNumber,
char *constValue,
int32 constFlag);
extern void
index_selectivity(Oid indid, Oid *classes, List *opnos,
extern void index_selectivity(Oid indid, Oid *classes, List *opnos,
Oid relid, List *attnos, List *values, List *flags,
int32 nkeys, float *idxPages, float *idxSelec);
extern Cost
join_selectivity(Oid functionObjectId, Oid operatorObjectId,
extern Cost join_selectivity(Oid functionObjectId, Oid operatorObjectId,
Oid relationObjectId1, AttrNumber attributeNumber1,
Oid relationObjectId2, AttrNumber attributeNumber2);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: tlist.h,v 1.6 1997/11/26 01:13:51 momjian Exp $
* $Id: tlist.h,v 1.7 1998/01/24 22:49:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -33,8 +33,7 @@ extern TargetEntry *match_varid(Var *test_var, List *tlist);
extern List *new_unsorted_tlist(List *targetlist);
extern List *copy_vars(List *target, List *source);
extern List *flatten_tlist(List *tlist);
extern List *
flatten_tlist_vars(List *full_tlist,
extern List * flatten_tlist_vars(List *full_tlist,
List *flat_tlist);
#endif /* TLIST_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: xfunc.h,v 1.5 1997/09/08 21:53:33 momjian Exp $
* $Id: xfunc.h,v 1.6 1998/01/24 22:49:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -50,11 +50,9 @@ extern int XfuncMode; /* defined in tcop/postgres.c */
/* function prototypes from planner/path/xfunc.c */
extern void xfunc_trypullup(Rel *rel);
extern int
xfunc_shouldpull(Path *childpath, JoinPath *parentpath,
extern int xfunc_shouldpull(Path *childpath, JoinPath *parentpath,
int whichchild, CInfo *maxcinfopt);
extern CInfo *
xfunc_pullup(Path *childpath, JoinPath *parentpath, CInfo *cinfo,
extern CInfo * xfunc_pullup(Path *childpath, JoinPath *parentpath, CInfo *cinfo,
int whichchild, int clausetype);
extern Cost xfunc_rank(Expr *clause);
extern Cost xfunc_expense(Query *queryInfo, Expr *clause);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: locks.h,v 1.6 1997/09/08 21:54:01 momjian Exp $
* $Id: locks.h,v 1.7 1998/01/24 22:49:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -17,8 +17,7 @@
#include "nodes/parsenodes.h"
#include "rewrite/prs2lock.h"
extern List *
matchLocks(CmdType event, RuleLock *rulelocks, int varno,
extern List * matchLocks(CmdType event, RuleLock *rulelocks, int varno,
Query *parsetree);
#endif /* LOCKS_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rewriteSupport.h,v 1.6 1997/11/26 01:14:27 momjian Exp $
* $Id: rewriteSupport.h,v 1.7 1998/01/24 22:49:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -18,8 +18,7 @@
extern int IsDefinedRewriteRule(char *ruleName);
extern void
prs2_addToRelation(Oid relid, Oid ruleId, CmdType event_type,
extern void prs2_addToRelation(Oid relid, Oid ruleId, CmdType event_type,
AttrNumber attno, bool isInstead, Node *qual,
List *actions);
extern void prs2_deleteFromRelation(Oid relid, Oid ruleId);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: buf_internals.h,v 1.19 1997/11/21 18:12:43 momjian Exp $
* $Id: buf_internals.h,v 1.20 1998/01/24 22:50:00 momjian Exp $
*
* NOTE
* If BUFFERPAGE0 is defined, then 0 will be used as a
@ -227,8 +227,7 @@ extern long *LocalRefCount;
extern BufferDesc *LocalBufferDescriptors;
extern int NLocBuffer;
extern BufferDesc *
LocalBufferAlloc(Relation reln, BlockNumber blockNum,
extern BufferDesc * LocalBufferAlloc(Relation reln, BlockNumber blockNum,
bool *foundPtr);
extern int WriteLocalBuffer(Buffer buffer, bool release);
extern int FlushLocalBuffer(Buffer buffer, bool release);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: bufmgr.h,v 1.16 1998/01/13 04:05:09 scrappy Exp $
* $Id: bufmgr.h,v 1.17 1998/01/24 22:50:03 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -75,14 +75,12 @@ extern int ShowPinTrace;
/*
* prototypes for functions in bufmgr.c
*/
extern Buffer
RelationGetBufferWithBuffer(Relation relation,
extern Buffer RelationGetBufferWithBuffer(Relation relation,
BlockNumber blockNumber, Buffer buffer);
extern Buffer ReadBuffer(Relation reln, BlockNumber blockNum);
extern int WriteBuffer(Buffer buffer);
extern int WriteNoReleaseBuffer(Buffer buffer);
extern Buffer
ReleaseAndReadBuffer(Buffer buffer, Relation relation,
extern Buffer ReleaseAndReadBuffer(Buffer buffer, Relation relation,
BlockNumber blockNum);
extern void InitBufferPool(IPCKey key);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: bufpage.h,v 1.15 1998/01/13 14:56:15 vadim Exp $
* $Id: bufpage.h,v 1.16 1998/01/24 22:50:05 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -287,8 +287,7 @@ typedef enum
*/
extern void PageInit(Page page, Size pageSize, Size specialSize);
extern OffsetNumber
PageAddItem(Page page, Item item, Size size,
extern OffsetNumber PageAddItem(Page page, Item item, Size size,
OffsetNumber offsetNumber, ItemIdFlags flags);
extern Page PageGetTempPage(Page page, Size specialSize);
extern void PageRestoreTempPage(Page tempPage, Page oldPage);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: ipc.h,v 1.22 1997/09/22 15:49:11 momjian Exp $
* $Id: ipc.h,v 1.23 1998/01/24 22:50:08 momjian Exp $
*
* NOTES
* This file is very architecture-specific. This stuff should actually
@ -75,8 +75,7 @@ extern void exitpg(int code);
extern void quasi_exitpg(void);
extern int on_exitpg(void (*function) (), caddr_t arg);
extern IpcSemaphoreId
IpcSemaphoreCreate(IpcSemaphoreKey semKey,
extern IpcSemaphoreId IpcSemaphoreCreate(IpcSemaphoreKey semKey,
int semNum, int permission, int semStartValue,
int removeOnExit, int *status);
extern void IpcSemaphoreKill(IpcSemaphoreKey key);
@ -84,8 +83,7 @@ extern void IpcSemaphoreLock(IpcSemaphoreId semId, int sem, int lock);
extern void IpcSemaphoreUnlock(IpcSemaphoreId semId, int sem, int lock);
extern int IpcSemaphoreGetCount(IpcSemaphoreId semId, int sem);
extern int IpcSemaphoreGetValue(IpcSemaphoreId semId, int sem);
extern IpcMemoryId
IpcMemoryCreate(IpcMemoryKey memKey, uint32 size,
extern IpcMemoryId IpcMemoryCreate(IpcMemoryKey memKey, uint32 size,
int permission);
extern IpcMemoryId IpcMemoryIdGet(IpcMemoryKey memKey, uint32 size);
extern char *IpcMemoryAttach(IpcMemoryId memId);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: lmgr.h,v 1.8 1997/09/08 21:54:30 momjian Exp $
* $Id: lmgr.h,v 1.9 1998/01/24 22:50:09 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -49,22 +49,17 @@ extern void RelationSetLockForWrite(Relation relation);
extern void RelationUnsetLockForWrite(Relation relation);
/* used in vaccum.c */
extern void
RelationSetLockForWritePage(Relation relation,
extern void RelationSetLockForWritePage(Relation relation,
ItemPointer itemPointer);
/* used in nbtpage.c, hashpage.c */
extern void
RelationSetSingleWLockPage(Relation relation,
extern void RelationSetSingleWLockPage(Relation relation,
ItemPointer itemPointer);
extern void
RelationUnsetSingleWLockPage(Relation relation,
extern void RelationUnsetSingleWLockPage(Relation relation,
ItemPointer itemPointer);
extern void
RelationSetSingleRLockPage(Relation relation,
extern void RelationSetSingleRLockPage(Relation relation,
ItemPointer itemPointer);
extern void
RelationUnsetSingleRLockPage(Relation relation,
extern void RelationUnsetSingleRLockPage(Relation relation,
ItemPointer itemPointer);
extern void RelationSetRIntentLock(Relation relation);
extern void RelationUnsetRIntentLock(Relation relation);
@ -73,8 +68,7 @@ extern void RelationUnsetWIntentLock(Relation relation);
/* single.c */
extern bool SingleLockReln(LockInfo linfo, LOCKT lockt, int action);
extern bool
SingleLockPage(LockInfo linfo, ItemPointer tidPtr,
extern bool SingleLockPage(LockInfo linfo, ItemPointer tidPtr,
LOCKT lockt, int action);
/* proc.c */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: lock.h,v 1.8 1997/09/08 21:54:31 momjian Exp $
* $Id: lock.h,v 1.9 1998/01/24 22:50:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -204,12 +204,10 @@ extern SPINLOCK LockMgrLock;
*/
extern void InitLocks(void);
extern void LockDisable(int status);
extern LockTableId
LockTabInit(char *tabName, MASK *conflictsP, int *prioP,
extern LockTableId LockTabInit(char *tabName, MASK *conflictsP, int *prioP,
int ntypes);
extern bool LockAcquire(LockTableId tableId, LOCKTAG *lockName, LOCKT lockt);
extern int
LockResolveConflicts(LOCKTAB *ltable, LOCK *lock, LOCKT lockt,
extern int LockResolveConflicts(LOCKTAB *ltable, LOCK *lock, LOCKT lockt,
TransactionId xid);
extern bool LockRelease(LockTableId tableId, LOCKTAG *lockName, LOCKT lockt);
extern void GrantLock(LOCK *lock, LOCKT lockt);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: shmem.h,v 1.9 1997/09/08 21:54:33 momjian Exp $
* $Id: shmem.h,v 1.10 1998/01/24 22:50:13 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -64,13 +64,11 @@ extern void ShmemCreate(unsigned int key, unsigned int size);
extern int InitShmem(unsigned int key, unsigned int size);
extern long *ShmemAlloc(unsigned long size);
extern int ShmemIsValid(unsigned long addr);
extern HTAB *
ShmemInitHash(char *name, long init_size, long max_size,
extern HTAB * ShmemInitHash(char *name, long init_size, long max_size,
HASHCTL *infoP, int hash_flags);
extern bool ShmemPIDLookup(int pid, SHMEM_OFFSET *locationPtr);
extern SHMEM_OFFSET ShmemPIDDestroy(int pid);
extern long *
ShmemInitStruct(char *name, unsigned long size,
extern long * ShmemInitStruct(char *name, unsigned long size,
bool *foundPtr);
extern bool TransactionIdIsInProgress(TransactionId xid);
@ -100,8 +98,7 @@ extern void SHMQueueInit(SHM_QUEUE *queue);
extern void SHMQueueElemInit(SHM_QUEUE *queue);
extern void SHMQueueDelete(SHM_QUEUE *queue);
extern void SHMQueueInsertTL(SHM_QUEUE *queue, SHM_QUEUE *elem);
extern void
SHMQueueFirst(SHM_QUEUE *queue, Pointer *nextPtrPtr,
extern void SHMQueueFirst(SHM_QUEUE *queue, Pointer *nextPtrPtr,
SHM_QUEUE *nextQueue);
extern bool SHMQueueEmpty(SHM_QUEUE *queue);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: sinval.h,v 1.6 1997/09/08 02:39:09 momjian Exp $
* $Id: sinval.h,v 1.7 1998/01/24 22:50:15 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -21,8 +21,7 @@ extern SPINLOCK SInvalLock;
extern void CreateSharedInvalidationState(IPCKey key);
extern void AttachSharedInvalidationState(IPCKey key);
extern void InitSharedInvalidationState(void);
extern void
RegisterSharedInvalid(int cacheId, Index hashIndex,
extern void RegisterSharedInvalid(int cacheId, Index hashIndex,
ItemPointer pointer);
extern void InvalidateSharedInvalid(void (*invalFunction) (),
void (*resetFunction) ());

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: sinvaladt.h,v 1.6 1997/09/08 21:54:34 momjian Exp $
* $Id: sinvaladt.h,v 1.7 1998/01/24 22:50:17 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -125,8 +125,7 @@ extern int SISegmentInit(bool killExistingSegment, IPCKey key);
extern bool SISetDataEntry(SISeg *segP, SharedInvalidData *data);
extern void SISetProcStateInvalid(SISeg *segP);
extern bool SIDelDataEntry(SISeg *segP);
extern void
SIReadEntryData(SISeg *segP, int backendId,
extern void SIReadEntryData(SISeg *segP, int backendId,
void (*invalFunction) (), void (*resetFunction) ());
extern void SIDelExpiredDataEntries(SISeg *segP);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: smgr.h,v 1.9 1997/09/08 02:39:13 momjian Exp $
* $Id: smgr.h,v 1.10 1998/01/24 22:50:18 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -28,17 +28,13 @@ extern int smgrunlink(int16 which, Relation reln);
extern int smgrextend(int16 which, Relation reln, char *buffer);
extern int smgropen(int16 which, Relation reln);
extern int smgrclose(int16 which, Relation reln);
extern int
smgrread(int16 which, Relation reln, BlockNumber blocknum,
extern int smgrread(int16 which, Relation reln, BlockNumber blocknum,
char *buffer);
extern int
smgrwrite(int16 which, Relation reln, BlockNumber blocknum,
extern int smgrwrite(int16 which, Relation reln, BlockNumber blocknum,
char *buffer);
extern int
smgrflush(int16 which, Relation reln, BlockNumber blocknum,
extern int smgrflush(int16 which, Relation reln, BlockNumber blocknum,
char *buffer);
extern int
smgrblindwrt(int16 which, char *dbname, char *relname, Oid dbid,
extern int smgrblindwrt(int16 which, char *dbname, char *relname, Oid dbid,
Oid relid, BlockNumber blkno, char *buffer);
extern int smgrnblocks(int16 which, Relation reln);
extern int smgrtruncate(int16 which, Relation reln, int nblocks);
@ -59,8 +55,7 @@ extern int mdclose(Relation reln);
extern int mdread(Relation reln, BlockNumber blocknum, char *buffer);
extern int mdwrite(Relation reln, BlockNumber blocknum, char *buffer);
extern int mdflush(Relation reln, BlockNumber blocknum, char *buffer);
extern int
mdblindwrt(char *dbstr, char *relstr, Oid dbid, Oid relid,
extern int mdblindwrt(char *dbstr, char *relstr, Oid dbid, Oid relid,
BlockNumber blkno, char *buffer);
extern int mdnblocks(Relation reln);
extern int mdtruncate(Relation reln, int nblocks);
@ -80,8 +75,7 @@ extern int mmclose(Relation reln);
extern int mmread(Relation reln, BlockNumber blocknum, char *buffer);
extern int mmwrite(Relation reln, BlockNumber blocknum, char *buffer);
extern int mmflush(Relation reln, BlockNumber blocknum, char *buffer);
extern int
mmblindwrt(char *dbstr, char *relstr, Oid dbid, Oid relid,
extern int mmblindwrt(char *dbstr, char *relstr, Oid dbid, Oid relid,
BlockNumber blkno, char *buffer);
extern int mmnblocks(Relation reln);
extern int mmcommit(void);

View File

@ -26,7 +26,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: dest.h,v 1.11 1997/09/08 21:54:36 momjian Exp $
* $Id: dest.h,v 1.12 1998/01/24 22:50:22 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -70,8 +70,7 @@ extern void EndCommand(char *commandTag, CommandDest dest);
extern void SendCopyBegin(void);
extern void ReceiveCopyBegin(void);
extern void NullCommand(CommandDest dest);
extern void
BeginCommand(char *pname, int operation, TupleDesc attinfo,
extern void BeginCommand(char *pname, int operation, TupleDesc attinfo,
bool isIntoRel, bool isIntoPortal, char *tag,
CommandDest dest);
extern void UpdateCommandInfo(int operation, Oid lastoid, uint32 tuples);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pquery.h,v 1.7 1997/09/08 21:54:40 momjian Exp $
* $Id: pquery.h,v 1.8 1998/01/24 22:50:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -23,13 +23,11 @@ extern QueryDesc *CreateQueryDesc(Query *parsetree, Plan *plantree,
extern EState *CreateExecutorState(void);
extern void
ProcessPortal(char *portalName, Query *parseTree,
extern void ProcessPortal(char *portalName, Query *parseTree,
Plan *plan, EState *state, TupleDesc attinfo,
CommandDest dest);
extern void
ProcessQuery(Query *parsetree, Plan *plan, char *argv[],
extern void ProcessQuery(Query *parsetree, Plan *plan, char *argv[],
Oid *typev, int nargs, CommandDest dest);
#endif /* pqueryIncluded */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: tcopprot.h,v 1.9 1997/12/11 17:36:58 momjian Exp $
* $Id: tcopprot.h,v 1.10 1998/01/24 22:50:26 momjian Exp $
*
* OLD COMMENTS
* This file was created so that other c files could get the two
@ -22,12 +22,10 @@
#include <parser/parse_node.h>
#ifndef BOOTSTRAP_INCLUDE
extern List *
pg_parse_and_plan(char *query_string, Oid *typev, int nargs,
extern List * pg_parse_and_plan(char *query_string, Oid *typev, int nargs,
QueryTreeList **queryListP, CommandDest dest);
extern void pg_exec_query(char *query_string, char **argv, Oid *typev, int nargs);
extern void
pg_exec_query_dest(char *query_string, char **argv, Oid *typev,
extern void pg_exec_query_dest(char *query_string, char **argv, Oid *typev,
int nargs, CommandDest dest);
#endif /* BOOTSTRAP_HEADER */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: acl.h,v 1.12 1998/01/05 18:43:18 momjian Exp $
* $Id: acl.h,v 1.13 1998/01/24 22:50:28 momjian Exp $
*
* NOTES
* For backward-compatability purposes we have to allow there
@ -141,8 +141,7 @@ extern Acl *aclinsert3(Acl *old_acl, AclItem *mod_aip, unsigned modechg);
extern char *aclmakepriv(char *old_privlist, char new_priv);
extern char *aclmakeuser(char *user_type, char *user);
extern ChangeACLStmt *
makeAclStmt(char *privs, List *rel_list, char *grantee,
extern ChangeACLStmt * makeAclStmt(char *privs, List *rel_list, char *grantee,
char grant_or_revoke);
/*
@ -164,11 +163,9 @@ extern char *get_groname(AclId grosysid);
extern int32 pg_aclcheck(char *relname, char *usename, AclMode mode);
extern int32 pg_ownercheck(char *usename, char *value, int cacheid);
extern int32
pg_func_ownercheck(char *usename, char *funcname,
extern int32 pg_func_ownercheck(char *usename, char *funcname,
int nargs, Oid *arglist);
extern int32
pg_aggr_ownercheck(char *usename, char *aggname,
extern int32 pg_aggr_ownercheck(char *usename, char *aggname,
Oid basetypeID);
#endif /* ACL_H */

View File

@ -10,7 +10,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: array.h,v 1.8 1997/09/08 21:54:49 momjian Exp $
* $Id: array.h,v 1.9 1998/01/24 22:50:31 momjian Exp $
*
* NOTES
* XXX the data array should be LONGALIGN'd -- notice that the array
@ -117,22 +117,17 @@ typedef struct
extern char *array_in(char *string, Oid element_type);
extern char *array_out(ArrayType *v, Oid element_type);
extern char *array_dims(ArrayType *v, bool *isNull);
extern Datum
array_ref(ArrayType *array, int n, int indx[], int reftype,
extern Datum array_ref(ArrayType *array, int n, int indx[], int reftype,
int elmlen, int arraylen, bool *isNull);
extern Datum
array_clip(ArrayType *array, int n, int upperIndx[],
extern Datum array_clip(ArrayType *array, int n, int upperIndx[],
int lowerIndx[], int reftype, int len, bool *isNull);
extern char *
array_set(ArrayType *array, int n, int indx[], char *dataPtr,
extern char * array_set(ArrayType *array, int n, int indx[], char *dataPtr,
int reftype, int elmlen, int arraylen, bool *isNull);
extern char *
array_assgn(ArrayType *array, int n, int upperIndx[],
extern char * array_assgn(ArrayType *array, int n, int upperIndx[],
int lowerIndx[], ArrayType *newArr, int reftype,
int len, bool *isNull);
extern int array_eq(ArrayType *array1, ArrayType *array2);
extern int
_LOtransfer(char **destfd, int size, int nitems, char **srcfd,
extern int _LOtransfer(char **destfd, int size, int nitems, char **srcfd,
int isSrcLO, int isDestLO);
extern char *_array_newLO(int *fd, int flag);
@ -156,14 +151,11 @@ extern int next_tuple(int n, int curr[], int span[]);
/*
* prototypes for functions defined in chunk.c
*/
extern char *
_ChunkArray(int fd, FILE *afd, int ndim, int dim[], int baseSize,
extern char * _ChunkArray(int fd, FILE *afd, int ndim, int dim[], int baseSize,
int *nbytes, char *chunkfile);
extern int
_ReadChunkArray(int st[], int endp[], int bsize, int fp,
extern int _ReadChunkArray(int st[], int endp[], int bsize, int fp,
char *destfp, ArrayType *array, int isDestLO, bool *isNull);
extern struct varlena *
_ReadChunkArray1El(int st[], int bsize, int fp,
extern struct varlena * _ReadChunkArray1El(int st[], int bsize, int fp,
ArrayType *array, bool *isNull);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: catcache.h,v 1.8 1997/09/08 21:54:52 momjian Exp $
* $Id: catcache.h,v 1.9 1998/01/24 22:50:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -63,18 +63,14 @@ typedef struct catcache
extern struct catcache *Caches;
extern GlobalMemory CacheCxt;
extern void
CatalogCacheIdInvalidate(int cacheId, Index hashIndex,
extern void CatalogCacheIdInvalidate(int cacheId, Index hashIndex,
ItemPointer pointer);
extern void ResetSystemCache(void);
extern CatCache *
InitSysCache(char *relname, char *indname, int id, int nkeys,
extern CatCache * InitSysCache(char *relname, char *indname, int id, int nkeys,
int key[], HeapTuple (*iScanfuncP) ());
extern HeapTuple
SearchSysCache(struct catcache * cache, Datum v1, Datum v2,
extern HeapTuple SearchSysCache(struct catcache * cache, Datum v1, Datum v2,
Datum v3, Datum v4);
extern void
RelationInvalidateCatalogCacheTuple(Relation relation,
extern void RelationInvalidateCatalogCacheTuple(Relation relation,
HeapTuple tuple, void (*function) ());
#endif /* CATCACHE_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: datum.h,v 1.5 1997/09/08 21:54:53 momjian Exp $
* $Id: datum.h,v 1.6 1998/01/24 22:50:36 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -57,8 +57,7 @@ extern void datumFree(Datum value, Oid type, bool byVal, Size len);
* return true if thwo datums are equal, false otherwise.
* XXX : See comments in the code for restrictions!
*/
extern bool
datumIsEqual(Datum value1, Datum value2, Oid type,
extern bool datumIsEqual(Datum value1, Datum value2, Oid type,
bool byVal, Size len);
#endif /* DATUM_H */

View File

@ -8,7 +8,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: dt.h,v 1.24 1997/12/17 23:19:28 thomas Exp $
* $Id: dt.h,v 1.25 1998/01/24 22:50:39 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -320,19 +320,15 @@ extern int date2j(int year, int month, int day);
extern double time2t(const int hour, const int min, const double sec);
extern int
ParseDateTime(char *timestr, char *lowstr,
extern int ParseDateTime(char *timestr, char *lowstr,
char *field[], int ftype[], int maxfields, int *numfields);
extern int
DecodeDateTime(char *field[], int ftype[],
extern int DecodeDateTime(char *field[], int ftype[],
int nf, int *dtype, struct tm * tm, double *fsec, int *tzp);
extern int
DecodeTimeOnly(char *field[], int ftype[], int nf,
extern int DecodeTimeOnly(char *field[], int ftype[], int nf,
int *dtype, struct tm * tm, double *fsec);
extern int
DecodeDateDelta(char *field[], int ftype[],
extern int DecodeDateDelta(char *field[], int ftype[],
int nf, int *dtype, struct tm * tm, double *fsec);
extern int EncodeDateOnly(struct tm * tm, int style, char *str);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: exc.h,v 1.10 1997/09/08 21:54:56 momjian Exp $
* $Id: exc.h,v 1.11 1998/01/24 22:50:41 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -78,8 +78,7 @@ typedef void ExcProc (Exception *, ExcDetail, ExcData, ExcMessage);
* prototypes for functions in exc.c
*/
extern void EnableExceptionHandling(bool on);
extern void
ExcRaise(Exception *excP,
extern void ExcRaise(Exception *excP,
ExcDetail detail,
ExcData data,
ExcMessage message);
@ -88,8 +87,7 @@ ExcRaise(Exception *excP,
/*
* prototypes for functions in excabort.c
*/
extern void
ExcAbort(const Exception *excP, ExcDetail detail, ExcData data,
extern void ExcAbort(const Exception *excP, ExcDetail detail, ExcData data,
ExcMessage message);
#endif /* EXC_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: fcache2.h,v 1.5 1997/09/08 21:55:02 momjian Exp $
* $Id: fcache2.h,v 1.6 1998/01/24 22:50:42 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -15,7 +15,6 @@
#include <nodes/execnodes.h>
extern void
setFcache(Node *node, Oid foid, List *argList, ExprContext *econtext);
extern void setFcache(Node *node, Oid foid, List *argList, ExprContext *econtext);
#endif /* FCACHE2_H */

View File

@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geo_decls.h,v 1.16 1998/01/07 18:46:59 momjian Exp $
* $Id: geo_decls.h,v 1.17 1998/01/24 22:50:43 momjian Exp $
*
* NOTE
* These routines do *not* use the float types from adt/.
@ -340,11 +340,9 @@ extern double *circle_area(CIRCLE *circle);
extern double circle_dt(CIRCLE *circle1, CIRCLE *circle2);
/* geo_selfuncs.c */
extern float64
areasel(Oid opid, Oid relid, AttrNumber attno,
extern float64 areasel(Oid opid, Oid relid, AttrNumber attno,
char *value, int32 flag);
extern float64
areajoinsel(Oid opid, Oid relid, AttrNumber attno,
extern float64 areajoinsel(Oid opid, Oid relid, AttrNumber attno,
char *value, int32 flag);
#endif /* GEO_DECLS_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: hsearch.h,v 1.6 1997/09/08 21:55:07 momjian Exp $
* $Id: hsearch.h,v 1.7 1998/01/24 22:50:45 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -133,8 +133,7 @@ typedef enum
extern HTAB *hash_create(int nelem, HASHCTL *info, int flags);
extern void hash_destroy(HTAB *hashp);
extern void hash_stats(char *where, HTAB *hashp);
extern long *
hash_search(HTAB *hashp, char *keyPtr, HASHACTION action,
extern long * hash_search(HTAB *hashp, char *keyPtr, HASHACTION action,
bool *foundPtr);
extern long *hash_seq(HTAB *hashp);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: lselect.h,v 1.8 1997/11/26 01:14:33 momjian Exp $
* $Id: lselect.h,v 1.9 1998/01/24 22:50:46 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -39,14 +39,11 @@ typedef struct
} LeftistContextData;
typedef LeftistContextData *LeftistContext;
extern struct leftist *
lmerge(struct leftist * pt, struct leftist * qt,
extern struct leftist * lmerge(struct leftist * pt, struct leftist * qt,
LeftistContext context);
extern HeapTuple
gettuple(struct leftist ** treep, short *devnum,
extern HeapTuple gettuple(struct leftist ** treep, short *devnum,
LeftistContext context);
extern void
puttuple(struct leftist ** treep, HeapTuple newtuple, short devnum,
extern void puttuple(struct leftist ** treep, HeapTuple newtuple, short devnum,
LeftistContext context);
extern int tuplecmp(HeapTuple ltup, HeapTuple rtup, LeftistContext context);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: lsyscache.h,v 1.7 1998/01/20 05:05:08 momjian Exp $
* $Id: lsyscache.h,v 1.8 1998/01/24 22:50:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -24,8 +24,7 @@ extern bool get_attisset(Oid relid, char *attname);
extern int get_atttypmod(Oid relid, AttrNumber attnum);
extern RegProcedure get_opcode(Oid opid);
extern char *get_opname(Oid opid);
extern bool
op_mergesortable(Oid opid, Oid ltype, Oid rtype,
extern bool op_mergesortable(Oid opid, Oid ltype, Oid rtype,
Oid *leftOp, Oid *rightOp);
extern Oid op_hashjoinable(Oid opid, Oid ltype, Oid rtype);
extern Oid get_commutator(Oid opid);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: mcxt.h,v 1.8 1997/09/08 21:55:11 momjian Exp $
* $Id: mcxt.h,v 1.9 1998/01/24 22:50:50 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -39,8 +39,7 @@ extern MemoryContext TopMemoryContext;
*/
extern void EnableMemoryContext(bool on);
extern Pointer MemoryContextAlloc(MemoryContext context, Size size);
extern Pointer
MemoryContextRealloc(MemoryContext context,
extern Pointer MemoryContextRealloc(MemoryContext context,
Pointer pointer,
Size size);
extern void MemoryContextFree(MemoryContext context, Pointer pointer);

View File

@ -15,7 +15,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: memutils.h,v 1.12 1998/01/11 21:03:10 momjian Exp $
* $Id: memutils.h,v 1.13 1998/01/24 22:50:51 momjian Exp $
*
* NOTES
* some of the information in this file will be moved to
@ -233,8 +233,7 @@ extern void AllocSetReset(AllocSet set);
extern bool AllocSetContains(AllocSet set, AllocPointer pointer);
extern AllocPointer AllocSetAlloc(AllocSet set, Size size);
extern void AllocSetFree(AllocSet set, AllocPointer pointer);
extern AllocPointer
AllocSetRealloc(AllocSet set, AllocPointer pointer,
extern AllocPointer AllocSetRealloc(AllocSet set, AllocPointer pointer,
Size size);
extern void AllocSetDump(AllocSet set);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: portal.h,v 1.7 1997/09/08 21:55:14 momjian Exp $
* $Id: portal.h,v 1.8 1998/01/24 22:50:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -68,8 +68,7 @@ extern void AtEOXact_portals(void);
extern void EnablePortalManager(bool on);
extern Portal GetPortalByName(char *name);
extern Portal BlankPortalAssignName(char *name);
extern void
PortalSetQuery(Portal portal, QueryDesc *queryDesc,
extern void PortalSetQuery(Portal portal, QueryDesc *queryDesc,
TupleDesc attinfo, EState *state,
void (*cleanup) (Portal portal));
extern QueryDesc *PortalGetQueryDesc(Portal portal);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rel.h,v 1.15 1998/01/15 19:46:37 pgsql Exp $
* $Id: rel.h,v 1.16 1998/01/24 22:50:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -186,8 +186,7 @@ typedef Relation *RelationPtr;
extern IndexStrategy RelationGetIndexStrategy(Relation relation);
extern void
RelationSetIndexSupport(Relation relation, IndexStrategy strategy,
extern void RelationSetIndexSupport(Relation relation, IndexStrategy strategy,
RegProcedure *support);
#endif /* REL_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: rel2.h,v 1.4 1997/09/08 21:55:16 momjian Exp $
* $Id: rel2.h,v 1.5 1998/01/24 22:50:55 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -17,8 +17,7 @@
extern IndexStrategy RelationGetIndexStrategy(Relation relation);
extern void
RelationSetIndexSupport(Relation relation, IndexStrategy strategy,
extern void RelationSetIndexSupport(Relation relation, IndexStrategy strategy,
RegProcedure *support);
#endif /* TMP_REL2_H */

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: relcache.h,v 1.8 1997/09/08 02:39:56 momjian Exp $
* $Id: relcache.h,v 1.9 1998/01/24 22:50:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -26,8 +26,7 @@ extern void RelationClose(Relation relation);
extern void RelationForgetRelation(Oid rid);
extern void RelationIdInvalidateRelationCacheByRelationId(Oid relationId);
extern void
RelationIdInvalidateRelationCacheByAccessMethodId(Oid accessMethodId);
extern void RelationIdInvalidateRelationCacheByAccessMethodId(Oid accessMethodId);
extern void RelationCacheInvalidate(bool onlyFlushReferenceCountZero);

View File

@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: syscache.h,v 1.8 1997/10/28 15:11:45 vadim Exp $
* $Id: syscache.h,v 1.9 1998/01/24 22:50:57 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -79,14 +79,11 @@ struct cachedesc
extern void zerocaches(void);
extern void InitCatalogCache(void);
extern HeapTuple
SearchSysCacheTuple(int cacheId, Datum key1, Datum key2,
extern HeapTuple SearchSysCacheTuple(int cacheId, Datum key1, Datum key2,
Datum key3, Datum key4);
extern int32
SearchSysCacheStruct(int cacheId, char *returnStruct,
extern int32 SearchSysCacheStruct(int cacheId, char *returnStruct,
Datum key1, Datum key2, Datum key3, Datum key4);
extern void *
SearchSysCacheGetAttribute(int cacheId,
extern void * SearchSysCacheGetAttribute(int cacheId,
AttrNumber attributeNumber,
Datum key1,
Datum key2,