diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/access/genam.h | 4 | ||||
-rw-r--r-- | src/include/access/hash.h | 3 | ||||
-rw-r--r-- | src/include/access/heapam.h | 18 | ||||
-rw-r--r-- | src/include/access/tupdesc.h | 4 | ||||
-rwxr-xr-x | src/include/catalog/duplicate_oids | 5 | ||||
-rw-r--r-- | src/include/catalog/heap.h | 4 | ||||
-rw-r--r-- | src/include/catalog/index.h | 4 | ||||
-rw-r--r-- | src/include/catalog/indexing.h | 12 | ||||
-rw-r--r-- | src/include/catalog/pg_am.h | 6 | ||||
-rw-r--r-- | src/include/catalog/pg_amop.h | 44 | ||||
-rw-r--r-- | src/include/catalog/pg_amproc.h | 29 | ||||
-rw-r--r-- | src/include/catalog/pg_opclass.h | 12 | ||||
-rw-r--r-- | src/include/catalog/pg_operator.h | 31 | ||||
-rw-r--r-- | src/include/catalog/pg_proc.h | 83 | ||||
-rw-r--r-- | src/include/catalog/pg_type.h | 8 | ||||
-rw-r--r-- | src/include/postgres.h | 45 | ||||
-rw-r--r-- | src/include/storage/bufmgr.h | 4 | ||||
-rw-r--r-- | src/include/utils/builtins.h | 9 | ||||
-rw-r--r-- | src/include/utils/oidcompos.h | 52 | ||||
-rw-r--r-- | src/include/utils/rel.h | 6 | ||||
-rw-r--r-- | src/include/utils/syscache.h | 19 |
21 files changed, 116 insertions, 286 deletions
diff --git a/src/include/access/genam.h b/src/include/access/genam.h index c9ec328019..1494665b33 100644 --- a/src/include/access/genam.h +++ b/src/include/access/genam.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: genam.h,v 1.13 1998/02/26 12:14:54 vadim Exp $ + * $Id: genam.h,v 1.14 1998/08/19 02:03:35 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -47,7 +47,7 @@ index_getprocid(Relation irel, AttrNumber attnum, extern Datum GetIndexValue(HeapTuple tuple, TupleDesc hTupDesc, int attOff, AttrNumber attrNums[], FuncIndexInfo *fInfo, - bool *attNull, Buffer buffer); + bool *attNull); /* in genam.c */ extern IndexScanDesc diff --git a/src/include/access/hash.h b/src/include/access/hash.h index f96936541c..4c21adde10 100644 --- a/src/include/access/hash.h +++ b/src/include/access/hash.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: hash.h,v 1.16 1998/04/26 04:08:41 momjian Exp $ + * $Id: hash.h,v 1.17 1998/08/19 02:03:37 momjian Exp $ * * NOTES * modeled after Margo Seltzer's hash implementation for unix. @@ -271,6 +271,7 @@ extern uint32 hashint4(uint32 key); extern uint32 hashfloat4(float32 keyp); extern uint32 hashfloat8(float64 keyp); extern uint32 hashoid(Oid key); +extern uint32 hashoid8(Oid key[]); extern uint32 hashchar(char key); extern uint32 hashtext(struct varlena * key); extern uint32 hashname(NameData *n); diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h index a28d06db98..777f1acbe3 100644 --- a/src/include/access/heapam.h +++ b/src/include/access/heapam.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: heapam.h,v 1.34 1998/07/27 19:38:29 vadim Exp $ + * $Id: heapam.h,v 1.35 1998/08/19 02:03:39 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -249,17 +249,17 @@ extern void heap_close(Relation relation); extern HeapScanDesc heap_beginscan(Relation relation, int atend, Snapshot snapshot, 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, Snapshot snapshot, ItemPointer tid, Buffer *b); +extern void heap_rescan(HeapScanDesc scan, bool scanFromEnd, ScanKey key); +extern void heap_endscan(HeapScanDesc scan); +extern HeapTuple heap_getnext(HeapScanDesc scandesc, int backw); +extern HeapTuple heap_fetch(Relation relation, Snapshot snapshot, ItemPointer tid, Buffer *userbuf); extern Oid heap_insert(Relation relation, HeapTuple tup); extern int heap_delete(Relation relation, ItemPointer tid); extern int heap_replace(Relation relation, ItemPointer otid, HeapTuple tup); -extern void heap_markpos(HeapScanDesc sdesc); -extern void heap_restrpos(HeapScanDesc sdesc); +extern void heap_markpos(HeapScanDesc scan); +extern void heap_restrpos(HeapScanDesc scan); /* in common/heaptuple.c */ extern Size ComputeDataSize(TupleDesc tupleDesc, Datum value[], char nulls[]); @@ -279,8 +279,8 @@ extern HeapTuple heap_formtuple(TupleDesc tupleDescriptor, Datum value[], char nulls[]); extern HeapTuple -heap_modifytuple(HeapTuple tuple, Buffer buffer, - Relation relation, Datum replValue[], char replNull[], char repl[]); +heap_modifytuple(HeapTuple tuple, + Relation relation, Datum replValue[], char replNull[], char repl[]); HeapTuple heap_addheader(uint32 natts, int structlen, char *structure); /* in common/heap/stats.c */ diff --git a/src/include/access/tupdesc.h b/src/include/access/tupdesc.h index add88f5e77..402bab9229 100644 --- a/src/include/access/tupdesc.h +++ b/src/include/access/tupdesc.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: tupdesc.h,v 1.17 1998/07/12 21:29:26 momjian Exp $ + * $Id: tupdesc.h,v 1.18 1998/08/19 02:03:40 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -53,7 +53,7 @@ typedef struct tupleDesc AttributeTupleForm *attrs; /* attrs[N] is a pointer to the description of Attribute Number N+1. */ TupleConstr *constr; -} *TupleDesc; +} *TupleDesc; extern TupleDesc CreateTemplateTupleDesc(int natts); diff --git a/src/include/catalog/duplicate_oids b/src/include/catalog/duplicate_oids index caf43a8010..7d5cd2eafd 100755 --- a/src/include/catalog/duplicate_oids +++ b/src/include/catalog/duplicate_oids @@ -5,7 +5,10 @@ # finds oids that are duplicated in the system tables. # -egrep '^DATA' pg_*.h | \ +# no multibytes files +FILES=`ls pg_*.h |grep -v '_mb.h'` + +egrep '^DATA' $FILES | \ sed -e 's/^.*OID[^=]*=[^0-9]*//' -e 's/[^0-9].*$//' | \ sort -n >/tmp/alloids.$$ uniq /tmp/alloids.$$ >/tmp/uniqoids.$$ diff --git a/src/include/catalog/heap.h b/src/include/catalog/heap.h index 3caebe7444..f3369a3b39 100644 --- a/src/include/catalog/heap.h +++ b/src/include/catalog/heap.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: heap.h,v 1.13 1998/08/06 05:13:01 momjian Exp $ + * $Id: heap.h,v 1.14 1998/08/19 02:03:44 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -21,7 +21,7 @@ extern Oid heap_create_with_catalog(char *relname, TupleDesc tupdesc, char relkind); extern void heap_destroy_with_catalog(char relname[]); -extern void heap_destroy(Relation r); +extern void heap_destroy(Relation rel); extern void InitTempRelList(void); extern void DestroyTempRels(void); diff --git a/src/include/catalog/index.h b/src/include/catalog/index.h index 1667b75091..15d3663a5a 100644 --- a/src/include/catalog/index.h +++ b/src/include/catalog/index.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: index.h,v 1.10 1998/02/26 04:40:40 momjian Exp $ + * $Id: index.h,v 1.11 1998/08/19 02:03:45 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -47,7 +47,7 @@ extern void index_destroy(Oid indexId); extern void FormIndexDatum(int numberOfAttributes, AttrNumber attributeNumber[], HeapTuple heapTuple, - TupleDesc heapDescriptor, Buffer buffer, Datum *datum, + TupleDesc heapDescriptor, Datum *datum, char *nullv, FuncIndexInfoPtr fInfo); extern void UpdateStats(Oid relid, long reltuples, bool hasindex); diff --git a/src/include/catalog/indexing.h b/src/include/catalog/indexing.h index bd3c6127dd..003ae30c0e 100644 --- a/src/include/catalog/indexing.h +++ b/src/include/catalog/indexing.h @@ -7,7 +7,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: indexing.h,v 1.15 1998/02/26 04:40:42 momjian Exp $ + * $Id: indexing.h,v 1.16 1998/08/19 02:03:46 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -37,7 +37,7 @@ #define AttributeNumIndex "pg_attribute_relid_attnum_index" #define AttributeRelidIndex "pg_attribute_attrelid_index" #define ProcedureOidIndex "pg_proc_oid_index" -#define ProcedureNameIndex "pg_proc_proname_index" +#define ProcedureNameIndex "pg_proc_proname_narg_type_index" #define ProcedureSrcIndex "pg_proc_prosrc_index" #define TypeOidIndex "pg_type_oid_index" #define TypeNameIndex "pg_type_typname_index" @@ -85,7 +85,7 @@ AttributeNumIndexScan(Relation heapRelation, extern HeapTuple ProcedureOidIndexScan(Relation heapRelation, Oid procId); extern HeapTuple ProcedureNameIndexScan(Relation heapRelation, - char *procName, int nargs, Oid *argTypes); + char *procName, int2 nargs, Oid *argTypes); extern HeapTuple ProcedureSrcIndexScan(Relation heapRelation, text *procSrc); extern HeapTuple TypeOidIndexScan(Relation heapRelation, Oid typeId); extern HeapTuple TypeNameIndexScan(Relation heapRelation, char *typeName); @@ -100,12 +100,12 @@ extern HeapTuple ClassOidIndexScan(Relation heapRelation, Oid relId); * The keyword is DECLARE_INDEX every thing after that is just like in a * normal specification of the 'define index' POSTQUEL command. */ -DECLARE_INDEX(pg_attribute_relid_attnam_index on pg_attribute using btree(mkoidname(attrelid, attname) oidname_ops)); -DECLARE_INDEX(pg_attribute_relid_attnum_index on pg_attribute using btree(mkoidint2(attrelid, attnum) oidint2_ops)); +DECLARE_INDEX(pg_attribute_relid_attnam_index on pg_attribute using btree(attrelid oid_ops, attname name_ops)); +DECLARE_INDEX(pg_attribute_relid_attnum_index on pg_attribute using btree(attrelid oid_ops, attnum int2_ops)); DECLARE_INDEX(pg_attribute_attrelid_index on pg_attribute using btree(attrelid oid_ops)); DECLARE_INDEX(pg_proc_oid_index on pg_proc using btree(oid oid_ops)); -DECLARE_INDEX(pg_proc_proname_index on pg_proc using btree(proname name_ops)); +DECLARE_INDEX(pg_proc_proname_narg_type_index on pg_proc using btree(proname name_ops, pronargs int2_ops, proargtypes oid8_ops)); DECLARE_INDEX(pg_proc_prosrc_index on pg_proc using btree(prosrc text_ops)); DECLARE_INDEX(pg_type_oid_index on pg_type using btree(oid oid_ops)); diff --git a/src/include/catalog/pg_am.h b/src/include/catalog/pg_am.h index 2b1667c6b1..05e9b797f8 100644 --- a/src/include/catalog/pg_am.h +++ b/src/include/catalog/pg_am.h @@ -7,7 +7,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pg_am.h,v 1.7 1998/08/11 18:28:37 momjian Exp $ + * $Id: pg_am.h,v 1.8 1998/08/19 02:03:48 momjian Exp $ * * NOTES * the genbki.sh script reads this file and generates .bki @@ -99,13 +99,13 @@ typedef FormData_pg_am *Form_pg_am; * ---------------- */ -DATA(insert OID = 405 ( hash PGUID "o" 1 1 hashgettuple hashinsert hashdelete - - - - hashbeginscan hashrescan hashendscan hashmarkpos hashrestrpos - - hashbuild - - )); -DESCR(""); DATA(insert OID = 402 ( rtree PGUID "o" 8 3 rtgettuple rtinsert rtdelete - - - - rtbeginscan rtrescan rtendscan rtmarkpos rtrestrpos - - rtbuild - - )); DESCR(""); DATA(insert OID = 403 ( btree PGUID "o" 5 1 btgettuple btinsert btdelete - - - - btbeginscan btrescan btendscan btmarkpos btrestrpos - - btbuild - - )); DESCR(""); #define BTREE_AM_OID 403 +DATA(insert OID = 405 ( hash PGUID "o" 1 1 hashgettuple hashinsert hashdelete - - - - hashbeginscan hashrescan hashendscan hashmarkpos hashrestrpos - - hashbuild - - )); +DESCR(""); DATA(insert OID = 783 ( gist PGUID "o" 100 7 gistgettuple gistinsert gistdelete - - - - gistbeginscan gistrescan gistendscan gistmarkpos gistrestrpos - - gistbuild - - )); DESCR(""); diff --git a/src/include/catalog/pg_amop.h b/src/include/catalog/pg_amop.h index 590753fc99..2044bff6ea 100644 --- a/src/include/catalog/pg_amop.h +++ b/src/include/catalog/pg_amop.h @@ -7,7 +7,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pg_amop.h,v 1.13 1998/08/11 05:32:45 momjian Exp $ + * $Id: pg_amop.h,v 1.14 1998/08/19 02:03:49 momjian Exp $ * * NOTES * the genbki.sh script reads this file and generates .bki @@ -178,6 +178,16 @@ DATA(insert OID = 0 ( 403 427 612 4 btreesel btreenpage )); DATA(insert OID = 0 ( 403 427 610 5 btreesel btreenpage )); /* + * nbtree oid8_ops + */ + +DATA(insert OID = 0 ( 403 435 645 1 btreesel btreenpage )); +DATA(insert OID = 0 ( 403 435 647 2 btreesel btreenpage )); +DATA(insert OID = 0 ( 403 435 649 3 btreesel btreenpage )); +DATA(insert OID = 0 ( 403 435 648 4 btreesel btreenpage )); +DATA(insert OID = 0 ( 403 435 646 5 btreesel btreenpage )); + +/* * nbtree float4_ops */ @@ -228,36 +238,6 @@ DATA(insert OID = 0 ( 403 432 565 4 btreesel btreenpage )); DATA(insert OID = 0 ( 403 432 563 5 btreesel btreenpage )); /* - * nbtree oidint4_ops - */ - -DATA(insert OID = 0 ( 403 435 930 1 btreesel btreenpage )); -DATA(insert OID = 0 ( 403 435 931 2 btreesel btreenpage )); -DATA(insert OID = 0 ( 403 435 932 3 btreesel btreenpage )); -DATA(insert OID = 0 ( 403 435 933 4 btreesel btreenpage )); -DATA(insert OID = 0 ( 403 435 934 5 btreesel btreenpage )); - -/* - * nbtree oidint2_ops - */ - -DATA(insert OID = 0 ( 403 437 830 1 btreesel btreenpage )); -DATA(insert OID = 0 ( 403 437 831 2 btreesel btreenpage )); -DATA(insert OID = 0 ( 403 437 832 3 btreesel btreenpage )); -DATA(insert OID = 0 ( 403 437 833 4 btreesel btreenpage )); -DATA(insert OID = 0 ( 403 437 834 5 btreesel btreenpage )); - -/* - * nbtree oidname_ops - */ - -DATA(insert OID = 0 ( 403 436 676 1 btreesel btreenpage )); -DATA(insert OID = 0 ( 403 436 677 2 btreesel btreenpage )); -DATA(insert OID = 0 ( 403 436 678 3 btreesel btreenpage )); -DATA(insert OID = 0 ( 403 436 679 4 btreesel btreenpage )); -DATA(insert OID = 0 ( 403 436 680 5 btreesel btreenpage )); - -/* * nbtree bpchar_ops */ @@ -330,6 +310,8 @@ DATA(insert OID = 0 ( 405 423 670 1 hashsel hashnpage )); DATA(insert OID = 0 ( 405 426 96 1 hashsel hashnpage )); /* oid_ops */ DATA(insert OID = 0 ( 405 427 607 1 hashsel hashnpage )); +/* oid8_ops */ +DATA(insert OID = 0 ( 405 435 679 1 hashsel hashnpage )); /* float4_ops */ DATA(insert OID = 0 ( 405 428 620 1 hashsel hashnpage )); /* char_ops */ diff --git a/src/include/catalog/pg_amproc.h b/src/include/catalog/pg_amproc.h index 3c4a192cfc..e1726a5961 100644 --- a/src/include/catalog/pg_amproc.h +++ b/src/include/catalog/pg_amproc.h @@ -9,7 +9,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pg_amproc.h,v 1.8 1998/08/11 05:32:46 momjian Exp $ + * $Id: pg_amproc.h,v 1.9 1998/08/19 02:03:51 momjian Exp $ * * NOTES * the genbki.sh script reads this file and generates .bki @@ -61,7 +61,8 @@ typedef FormData_pg_amproc *Form_pg_amproc; * initial contents of pg_amproc * ---------------- */ - + +/* rtree */ DATA(insert OID = 0 (402 422 193 1)); DATA(insert OID = 0 (402 422 194 2)); DATA(insert OID = 0 (402 422 195 3)); @@ -71,6 +72,12 @@ DATA(insert OID = 0 (402 433 196 3)); DATA(insert OID = 0 (402 434 197 1)); DATA(insert OID = 0 (402 434 198 2)); DATA(insert OID = 0 (402 434 199 3)); + + +/* btree */ +DATA(insert OID = 0 (403 406 689 1)); +DATA(insert OID = 0 (403 407 690 1)); +DATA(insert OID = 0 (403 408 691 1)); DATA(insert OID = 0 (403 421 350 1)); DATA(insert OID = 0 (403 423 355 1)); DATA(insert OID = 0 (403 424 353 1)); @@ -79,39 +86,39 @@ DATA(insert OID = 0 (403 426 351 1)); DATA(insert OID = 0 (403 427 356 1)); DATA(insert OID = 0 (403 428 354 1)); DATA(insert OID = 0 (403 429 358 1)); -DATA(insert OID = 0 (403 406 689 1)); -DATA(insert OID = 0 (403 407 690 1)); -DATA(insert OID = 0 (403 408 691 1)); -DATA(insert OID = 0 (403 1181 359 1)); DATA(insert OID = 0 (403 430 1274 1)); DATA(insert OID = 0 (403 431 360 1)); DATA(insert OID = 0 (403 432 357 1)); -DATA(insert OID = 0 (403 435 928 1)); +DATA(insert OID = 0 (403 435 404 1)); DATA(insert OID = 0 (403 436 948 1)); DATA(insert OID = 0 (403 437 828 1)); DATA(insert OID = 0 (403 1076 1078 1)); DATA(insert OID = 0 (403 1077 1079 1)); DATA(insert OID = 0 (403 1114 1092 1)); DATA(insert OID = 0 (403 1115 1107 1)); +DATA(insert OID = 0 (403 1181 359 1)); DATA(insert OID = 0 (403 1312 1314 1)); DATA(insert OID = 0 (403 1313 1315 1)); + +/* hash */ +DATA(insert OID = 0 (405 406 692 1)); +DATA(insert OID = 0 (405 407 693 1)); +DATA(insert OID = 0 (405 408 694 1)); DATA(insert OID = 0 (405 421 449 1)); DATA(insert OID = 0 (405 423 452 1)); DATA(insert OID = 0 (405 426 450 1)); DATA(insert OID = 0 (405 427 453 1)); DATA(insert OID = 0 (405 428 451 1)); DATA(insert OID = 0 (405 429 454 1)); -DATA(insert OID = 0 (405 406 692 1)); -DATA(insert OID = 0 (405 407 693 1)); -DATA(insert OID = 0 (405 408 694 1)); -DATA(insert OID = 0 (405 1181 455 1)); DATA(insert OID = 0 (405 430 1281 1)); DATA(insert OID = 0 (405 431 456 1)); +DATA(insert OID = 0 (405 435 457 1)); DATA(insert OID = 0 (405 1076 1080 1)); DATA(insert OID = 0 (405 1077 1081 1)); DATA(insert OID = 0 (405 1114 450 1)); DATA(insert OID = 0 (405 1115 452 1)); +DATA(insert OID = 0 (405 1181 455 1)); DATA(insert OID = 0 (405 1312 452 1)); DATA(insert OID = 0 (405 1313 452 1)); diff --git a/src/include/catalog/pg_opclass.h b/src/include/catalog/pg_opclass.h index 10a20f91d6..882830be0b 100644 --- a/src/include/catalog/pg_opclass.h +++ b/src/include/catalog/pg_opclass.h @@ -7,7 +7,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pg_opclass.h,v 1.9 1998/04/26 04:09:00 momjian Exp $ + * $Id: pg_opclass.h,v 1.10 1998/08/19 02:03:52 momjian Exp $ * * NOTES * the genbki.sh script reads this file and generates .bki @@ -62,8 +62,6 @@ typedef FormData_pg_opclass *Form_pg_opclass; * (see the README in this directory), so just put zeros * in, which are invalid OID's anyway. --djm */ -DATA(insert OID = 1181 ( name_ops 19 )); -DESCR(""); DATA(insert OID = 421 ( int2_ops 21 )); DESCR(""); DATA(insert OID = 422 ( box_ops 603 )); @@ -91,11 +89,7 @@ DATA(insert OID = 433 ( bigbox_ops 0 )); DESCR(""); DATA(insert OID = 434 ( poly_ops 604 )); DESCR(""); -DATA(insert OID = 435 ( oidint4_ops 910 )); -DESCR(""); -DATA(insert OID = 436 ( oidname_ops 911 )); -DESCR(""); -DATA(insert OID = 437 ( oidint2_ops 810 )); +DATA(insert OID = 435 ( oid8_ops 30 )); DESCR(""); DATA(insert OID = 714 ( circle_ops 718 )); DESCR(""); @@ -107,6 +101,8 @@ DATA(insert OID = 1114 ( date_ops 1082 )); DESCR(""); DATA(insert OID = 1115 ( time_ops 1083 )); DESCR(""); +DATA(insert OID = 1181 ( name_ops 19 )); +DESCR(""); DATA(insert OID = 1312 ( datetime_ops 1184 )); DESCR(""); DATA(insert OID = 1313 ( timespan_ops 1186 )); diff --git a/src/include/catalog/pg_operator.h b/src/include/catalog/pg_operator.h index 0a3820459b..9e11a79ed6 100644 --- a/src/include/catalog/pg_operator.h +++ b/src/include/catalog/pg_operator.h @@ -7,7 +7,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pg_operator.h,v 1.33 1998/08/11 18:28:45 momjian Exp $ + * $Id: pg_operator.h,v 1.34 1998/08/19 02:03:53 momjian Exp $ * * NOTES * the genbki.sh script reads this file and generates .bki @@ -279,6 +279,14 @@ DATA(insert OID = 606 ( "<#>" PGUID 0 b t f 702 702 704 0 0 0 0 mktinterval - DATA(insert OID = 607 ( "=" PGUID 0 b t t 26 26 16 607 608 97 97 oideq eqsel eqjoinsel )); #define OIDEqualOperator 607 /* XXX planner/prep/semanopt.c crock */ DATA(insert OID = 608 ( "<>" PGUID 0 b t f 26 26 16 608 607 0 0 oidne neqsel neqjoinsel )); + +DATA(insert OID = 644 ( "<>" PGUID 0 b t f 30 30 16 644 649 0 0 oid8ne neqsel neqjoinsel )); +DATA(insert OID = 645 ( "<" PGUID 0 b t f 30 30 16 646 648 0 0 oid8lt intltsel intltjoinsel )); +DATA(insert OID = 646 ( ">" PGUID 0 b t f 30 30 16 645 647 0 0 oid8gt intgtsel intgtjoinsel )); +DATA(insert OID = 647 ( "<=" PGUID 0 b t f 30 30 16 648 646 0 0 oid8le intltsel intltjoinsel )); +DATA(insert OID = 648 ( ">=" PGUID 0 b t f 30 30 16 647 645 0 0 oid8ge intgtsel intgtjoinsel )); +DATA(insert OID = 649 ( "=" PGUID 0 b t f 30 30 16 649 644 0 0 oid8eq eqsel eqjoinsel )); + DATA(insert OID = 609 ( "<" PGUID 0 b t f 26 26 16 610 612 0 0 int4lt intltsel intltjoinsel )); DATA(insert OID = 610 ( ">" PGUID 0 b t f 26 26 16 609 611 0 0 int4gt intgtsel intgtjoinsel )); DATA(insert OID = 611 ( "<=" PGUID 0 b t f 26 26 16 612 610 0 0 int4le intltsel intltjoinsel )); @@ -337,13 +345,6 @@ DATA(insert OID = 673 ( "<=" PGUID 0 b t f 701 701 16 675 674 0 0 float8le DATA(insert OID = 674 ( ">" PGUID 0 b t f 701 701 16 672 673 0 0 float8gt intltsel intltjoinsel )); DATA(insert OID = 675 ( ">=" PGUID 0 b t f 701 701 16 673 672 0 0 float8ge intltsel intltjoinsel )); -DATA(insert OID = 676 ( "<" PGUID 0 b t f 911 911 16 680 679 0 0 oidnamelt intltsel intltjoinsel )); -DATA(insert OID = 677 ( "<=" PGUID 0 b t f 911 911 16 679 680 0 0 oidnamele intltsel intltjoinsel )); -DATA(insert OID = 678 ( "=" PGUID 0 b t f 911 911 16 678 681 0 0 oidnameeq intltsel intltjoinsel )); -DATA(insert OID = 679 ( ">=" PGUID 0 b t f 911 911 16 677 676 0 0 oidnamege intltsel intltjoinsel )); -DATA(insert OID = 680 ( ">" PGUID 0 b t f 911 911 16 676 677 0 0 oidnamegt intltsel intltjoinsel )); -DATA(insert OID = 681 ( "<>" PGUID 0 b t f 911 911 16 681 678 0 0 oidnamene intltsel intltjoinsel )); - DATA(insert OID = 684 ( "+" PGUID 0 b t f 20 20 20 684 0 0 0 int8pl - - )); DATA(insert OID = 685 ( "-" PGUID 0 b t f 20 20 20 685 0 0 0 int8mi - - )); DATA(insert OID = 686 ( "*" PGUID 0 b t f 20 20 20 686 0 0 0 int8mul - - )); @@ -407,13 +408,6 @@ DATA(insert OID = 814 ( ">" PGUID 0 b t f 704 704 16 814 0 0 0 interv DATA(insert OID = 815 ( "<=" PGUID 0 b t f 704 704 16 815 0 0 0 intervalle - - )); DATA(insert OID = 816 ( ">=" PGUID 0 b t f 704 704 16 816 0 0 0 intervalge - - )); -DATA(insert OID = 830 ( "<" PGUID 0 b t f 810 810 16 834 833 0 0 oidint2lt intltsel intltjoinsel )); -DATA(insert OID = 831 ( "<=" PGUID 0 b t f 810 810 16 833 834 0 0 oidint2le intltsel intltjoinsel )); -DATA(insert OID = 832 ( "=" PGUID 0 b t f 810 810 16 832 835 0 0 oidint2eq intltsel intltjoinsel )); -DATA(insert OID = 833 ( ">=" PGUID 0 b t f 810 810 16 831 830 0 0 oidint2ge intltsel intltjoinsel )); -DATA(insert OID = 834 ( ">" PGUID 0 b t f 810 810 16 830 831 0 0 oidint2gt intltsel intltjoinsel )); -DATA(insert OID = 835 ( "<>" PGUID 0 b t f 810 810 16 835 832 0 0 oidint2ne intltsel intltjoinsel )); - DATA(insert OID = 843 ( "*" PGUID 0 b t f 790 700 790 845 0 0 0 cash_mul_flt4 - - )); DATA(insert OID = 844 ( "/" PGUID 0 b t f 790 700 790 0 0 0 0 cash_div_flt4 - - )); DATA(insert OID = 845 ( "*" PGUID 0 b t f 700 790 790 843 0 0 0 flt4_mul_cash - - )); @@ -436,13 +430,6 @@ DATA(insert OID = 916 ( "*" PGUID 0 b t f 701 790 790 908 0 0 0 flt8 DATA(insert OID = 917 ( "*" PGUID 0 b t f 23 790 790 912 0 0 0 int4_mul_cash - - )); DATA(insert OID = 918 ( "*" PGUID 0 b t f 21 790 790 914 0 0 0 int2_mul_cash - - )); -DATA(insert OID = 930 ( "<" PGUID 0 b t f 910 910 16 934 933 0 0 oidint4lt intltsel intltjoinsel )); -DATA(insert OID = 931 ( "<=" PGUID 0 b t f 910 910 16 933 934 0 0 oidint4le intltsel intltjoinsel )); -DATA(insert OID = 932 ( "=" PGUID 0 b t f 910 910 16 932 935 0 0 oidint4eq intltsel intltjoinsel )); -DATA(insert OID = 933 ( ">=" PGUID 0 b t f 910 910 16 931 930 0 0 oidint4ge intltsel intltjoinsel )); -DATA(insert OID = 934 ( ">" PGUID 0 b t f 910 910 16 930 931 0 0 oidint4gt intltsel intltjoinsel )); -DATA(insert OID = 935 ( "<>" PGUID 0 b t f 910 910 16 935 932 0 0 oidint4ne intltsel intltjoinsel )); - DATA(insert OID = 965 ( "^" PGUID 0 b t f 701 701 701 0 0 0 0 dpow - - )); DATA(insert OID = 966 ( "+" PGUID 0 b t f 1034 1033 1034 0 0 0 0 aclinsert intltsel intltjoinsel )); DATA(insert OID = 967 ( "-" PGUID 0 b t f 1034 1033 1034 0 0 0 0 aclremove intltsel intltjoinsel )); diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index af78e4b1eb..94f7439679 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pg_proc.h,v 1.65 1998/08/15 06:47:39 thomas Exp $ + * $Id: pg_proc.h,v 1.66 1998/08/19 02:03:54 momjian Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki @@ -745,6 +745,8 @@ DATA(insert OID = 355 ( btfloat8cmp PGUID 11 f t f 2 f 23 "701 701" 100 0 0 DESCR("btree less-equal-greater"); DATA(insert OID = 356 ( btoidcmp PGUID 11 f t f 2 f 23 "26 26" 100 0 0 100 foo bar )); DESCR("btree less-equal-greater"); +DATA(insert OID = 404 ( btoid8cmp PGUID 11 f t f 2 f 23 "30 30" 100 0 0 100 foo bar )); +DESCR("btree less-equal-greater"); DATA(insert OID = 357 ( btabstimecmp PGUID 11 f t f 2 f 23 "702 702" 100 0 0 100 foo bar )); DESCR("btree less-equal-greater"); DATA(insert OID = 358 ( btcharcmp PGUID 11 f t f 2 f 23 "18 18" 100 0 0 100 foo bar )); @@ -825,6 +827,8 @@ DATA(insert OID = 452 ( hashfloat8 PGUID 11 f t f 2 f 23 "701 701" 100 0 0 DESCR("hash"); DATA(insert OID = 453 ( hashoid PGUID 11 f t f 2 f 23 "26 26" 100 0 0 100 foo bar )); DESCR("hash"); +DATA(insert OID = 457 ( hashoid8 PGUID 11 f t f 2 f 23 "30 30" 100 0 0 100 foo bar )); +DESCR("hash"); DATA(insert OID = 454 ( hashchar PGUID 11 f t f 2 f 23 "18 18" 100 0 0 100 foo bar )); DESCR("hash"); DATA(insert OID = 455 ( hashname PGUID 11 f t f 2 f 23 "19 19" 100 0 0 100 foo bar )); @@ -907,10 +911,18 @@ DESCR("not equal"); DATA(insert OID = 668 ( bpchar PGUID 11 f t f 2 f 1042 "1042 23" 100 0 0 100 foo bar )); DATA(insert OID = 669 ( varchar PGUID 11 f t f 2 f 1043 "1043 23" 100 0 0 100 foo bar )); -DATA(insert OID = 682 ( mktinterval PGUID 11 f t f 2 f 704 "702 702" 100 0 0 100 foo bar )); +DATA(insert OID = 676 ( mktinterval PGUID 11 f t f 2 f 704 "702 702" 100 0 0 100 foo bar )); DESCR("convert to interval"); -DATA(insert OID = 683 ( oid8eq PGUID 11 f t f 2 f 16 "30 30" 100 0 0 100 foo bar )); +DATA(insert OID = 677 ( oid8lt PGUID 11 f t f 2 f 16 "30 30" 100 0 0 100 foo bar )); +DESCR("less-than"); +DATA(insert OID = 678 ( oid8le PGUID 11 f t f 2 f 16 "30 30" 100 0 0 100 foo bar )); +DESCR("less-than-or-equal"); +DATA(insert OID = 679 ( oid8eq PGUID 11 f t f 2 f 16 "30 30" 100 0 0 100 foo bar )); DESCR("equal"); +DATA(insert OID = 680 ( oid8ge PGUID 11 f t f 2 f 16 "30 30" 100 0 0 100 foo bar )); +DESCR("greater-than-or-equal"); +DATA(insert OID = 681 ( oid8gt PGUID 11 f t f 2 f 16 "30 30" 100 0 0 100 foo bar )); +DESCR("greater-than"); /* OIDS 700 - 799 */ DATA(insert OID = 710 ( getpgusername PGUID 11 f t f 0 f 19 "0" 100 0 0 100 foo bar )); @@ -1053,27 +1065,6 @@ DESCR("convert"); DATA(insert OID = 819 ( text_int4 PGUID 11 f t f 1 f 23 "25" 100 0 0 100 foo bar)); DESCR("convert"); -DATA(insert OID = 820 ( oidint2in PGUID 11 f t f 1 f 810 "0" 100 0 0 100 foo bar)); -DESCR("(internal)"); -DATA(insert OID = 821 ( oidint2out PGUID 11 f t f 1 f 19 "0" 100 0 0 100 foo bar)); -DESCR("(internal)"); -DATA(insert OID = 822 ( oidint2lt PGUID 11 f t f 2 f 16 "810 810" 100 0 0 100 foo bar)); -DESCR("less-than"); -DATA(insert OID = 823 ( oidint2le PGUID 11 f t f 2 f 16 "810 810" 100 0 0 100 foo bar)); -DESCR("less-than-or-equal"); -DATA(insert OID = 824 ( oidint2eq PGUID 11 f t f 2 f 16 "810 810" 100 0 0 100 foo bar)); -DESCR("equal"); -DATA(insert OID = 825 ( oidint2ge PGUID 11 f t f 2 f 16 "810 810" 100 0 0 100 foo bar)); -DESCR("greater-than-or-equal"); -DATA(insert OID = 826 ( oidint2gt PGUID 11 f t f 2 f 16 "810 810" 100 0 0 100 foo bar)); -DESCR("greater-than"); -DATA(insert OID = 827 ( oidint2ne PGUID 11 f t f 2 f 16 "810 810" 100 0 0 100 foo bar)); -DESCR("not equal"); -DATA(insert OID = 828 ( oidint2cmp PGUID 11 f t f 2 f 21 "810 810" 100 0 0 100 foo bar)); -DESCR("less-equal-greater"); -DATA(insert OID = 829 ( mkoidint2 PGUID 11 f t f 2 f 810 "26 21" 100 0 0 100 foo bar)); -DESCR(""); - DATA(insert OID = 849 ( textpos PGUID 11 f t f 2 f 23 "25 25" 100 0 1 0 foo bar )); DESCR("return position of substring"); DATA(insert OID = 850 ( textlike PGUID 11 f t f 2 f 16 "25 25" 100 0 1 0 foo bar )); @@ -1159,27 +1150,6 @@ DESCR("multiply"); /* OIDS 900 - 999 */ -DATA(insert OID = 920 ( oidint4in PGUID 11 f t f 1 f 910 "0" 100 0 0 100 foo bar)); -DESCR("(internal)"); -DATA(insert OID = 921 ( oidint4out PGUID 11 f t f 1 f 19 "0" 100 0 0 100 foo bar)); -DESCR("(internal)"); -DATA(insert OID = 922 ( oidint4lt PGUID 11 f t f 2 f 16 "910 910" 100 0 0 100 foo bar)); -DESCR("less-than"); -DATA(insert OID = 923 ( oidint4le PGUID 11 f t f 2 f 16 "910 910" 100 0 0 100 foo bar)); -DESCR("less-than-or-equal"); -DATA(insert OID = 924 ( oidint4eq PGUID 11 f t f 2 f 16 "910 910" 100 0 0 100 foo bar)); -DESCR("equal"); -DATA(insert OID = 925 ( oidint4ge PGUID 11 f t f 2 f 16 "910 910" 100 0 0 100 foo bar)); -DESCR("greater-than-or-equal"); -DATA(insert OID = 926 ( oidint4gt PGUID 11 f t f 2 f 16 "910 910" 100 0 0 100 foo bar)); -DESCR("greater-than"); -DATA(insert OID = 927 ( oidint4ne PGUID 11 f t f 2 f 16 "910 910" 100 0 0 100 foo bar)); -DESCR("not equal"); -DATA(insert OID = 928 ( oidint4cmp PGUID 11 f t f 2 f 23 "910 910" 100 0 0 100 foo bar)); -DESCR("less-equal-greater"); -DATA(insert OID = 929 ( mkoidint4 PGUID 11 f t f 2 f 910 "26 23" 100 0 0 100 foo bar)); -DESCR(""); - /* isoldpath, upgradepath, upgradepoly, revertpoly are used to update pre-v6.1 to v6.1 - tgl 97/06/03 */ DATA(insert OID = 936 ( isoldpath PGUID 11 f t f 1 f 16 "602" 100 0 0 100 foo bar )); DESCR(""); @@ -1190,27 +1160,6 @@ DESCR(""); DATA(insert OID = 939 ( revertpoly PGUID 11 f t f 1 f 604 "604" 100 0 0 100 foo bar )); DESCR(""); -DATA(insert OID = 940 ( oidnamein PGUID 11 f t f 1 f 911 "0" 100 0 0 100 foo bar)); -DESCR("(internal)"); -DATA(insert OID = 941 ( oidnameout PGUID 11 f t f 1 f 19 "0" 100 0 0 100 foo bar)); -DESCR("(internal)"); -DATA(insert OID = 942 ( oidnamelt PGUID 11 f t f 2 f 16 "911 911" 100 0 0 100 foo bar)); -DESCR("less-than"); -DATA(insert OID = 943 ( oidnamele PGUID 11 f t f 2 f 16 "911 911" 100 0 0 100 foo bar)); -DESCR("less-than-or-equal"); -DATA(insert OID = 944 ( oidnameeq PGUID 11 f t f 2 f 16 "911 911" 100 0 0 100 foo bar)); -DESCR("equal"); -DATA(insert OID = 945 ( oidnamege PGUID 11 f t f 2 f 16 "911 911" 100 0 0 100 foo bar)); -DESCR("greater-than-or-equal"); -DATA(insert OID = 946 ( oidnamegt PGUID 11 f t f 2 f 16 "911 911" 100 0 0 100 foo bar)); -DESCR("greater-than"); -DATA(insert OID = 947 ( oidnamene PGUID 11 f t f 2 f 16 "911 911" 100 0 0 100 foo bar)); -DESCR("not equal"); -DATA(insert OID = 948 ( oidnamecmp PGUID 11 f t f 2 f 23 "911 911" 100 0 0 100 foo bar)); -DESCR("less-equal-greater"); -DATA(insert OID = 949 ( mkoidname PGUID 11 f t f 2 f 911 "26 19" 100 0 0 100 foo bar)); -DESCR(""); - DATA(insert OID = 950 ( istrue PGUID 11 f t f 1 f 16 "16" 100 0 0 100 foo bar )); DESCR(""); DATA(insert OID = 951 ( isfalse PGUID 11 f t f 1 f 16 "16" 100 0 0 100 foo bar )); @@ -1508,7 +1457,7 @@ DESCR("date difference preserving months and years"); /* OIDS 1200 - 1299 */ -DATA(insert OID = 1200 ( int42reltime PGUID 11 f t f 1 f 703 "21" 100 0 0 100 foo bar )); +DATA(insert OID = 1200 ( int4reltime PGUID 11 f t f 1 f 703 "23" 100 0 0 100 foo bar )); DESCR("convert"); DATA(insert OID = 1217 ( datetime_trunc PGUID 11 f t f 2 f 1184 "25 1184" 100 0 0 100 foo bar )); diff --git a/src/include/catalog/pg_type.h b/src/include/catalog/pg_type.h index bfda556afe..85ca3eb313 100644 --- a/src/include/catalog/pg_type.h +++ b/src/include/catalog/pg_type.h @@ -7,7 +7,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pg_type.h,v 1.43 1998/08/11 18:28:49 momjian Exp $ + * $Id: pg_type.h,v 1.44 1998/08/19 02:03:56 momjian Exp $ * * NOTES * the genbki.sh script reads this file and generates .bki @@ -298,14 +298,8 @@ DESCR("money '$d,ddd.cc'"); DATA(insert OID = 791 ( _money PGUID -1 -1 f b t \054 0 790 array_in array_out array_in array_out i _null_ )); /* OIDS 800 - 899 */ -DATA(insert OID = 810 ( oidint2 PGUID 6 20 f b t \054 0 0 oidint2in oidint2out oidint2in oidint2out i _null_ )); -DESCR("oid and int2 composed"); /* OIDS 900 - 999 */ -DATA(insert OID = 910 ( oidint4 PGUID 8 20 f b t \054 0 0 oidint4in oidint4out oidint4in oidint4out i _null_ )); -DESCR("oid and int4 composed"); -DATA(insert OID = 911 ( oidname PGUID OIDNAMELEN OIDNAMELEN f b t \054 0 0 oidnamein oidnameout oidnamein oidnameout i _null_ )); -DESCR("oid and name composed"); /* OIDS 1000 - 1099 */ DATA(insert OID = 1000 ( _bool PGUID -1 -1 f b t \054 0 16 array_in array_out array_in array_out i _null_ )); diff --git a/src/include/postgres.h b/src/include/postgres.h index f6cbc47c55..6b659347fa 100644 --- a/src/include/postgres.h +++ b/src/include/postgres.h @@ -6,7 +6,7 @@ * * Copyright (c) 1995, Regents of the University of California * - * $Id: postgres.h,v 1.17 1998/07/03 04:24:10 momjian Exp $ + * $Id: postgres.h,v 1.18 1998/08/19 02:03:32 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -22,7 +22,6 @@ * int28 oid8 * bytea text * NameData Name - * oidint4 oidint2 oidname * * TABLE OF CONTENTS * 1) simple type definitions @@ -99,48 +98,6 @@ typedef struct nameData } NameData; typedef NameData *Name; -/* ---------------- - * oidint4 - * - * this is a new system type used by the file interface. - * ---------------- - */ -typedef struct OidInt4Data -{ - Oid oi_oid; - int32 oi_int4; -} OidInt4Data; - -typedef struct OidInt4Data *OidInt4; - -/* ---------------- - * oidint2 - * - * this is a new system type used to define indices on two attrs. - * ---------------- - */ -typedef struct OidInt2Data -{ - Oid oi_oid; - int16 oi_int2; -} OidInt2Data; - -typedef struct OidInt2Data *OidInt2; - -/* ---------------- - * oidname - * - * this is a new system type used to define indices on two attrs. - * ---------------- - */ -typedef struct OidNameData -{ - Oid id; - NameData name; -} OidNameData; - -typedef struct OidNameData *OidName; - /* ---------------------------------------------------------------- * Section 3: TransactionId and CommandId * ---------------------------------------------------------------- diff --git a/src/include/storage/bufmgr.h b/src/include/storage/bufmgr.h index 9b590227b5..60acb86634 100644 --- a/src/include/storage/bufmgr.h +++ b/src/include/storage/bufmgr.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: bufmgr.h,v 1.20 1998/06/15 18:40:02 momjian Exp $ + * $Id: bufmgr.h,v 1.21 1998/08/19 02:03:57 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -147,7 +147,7 @@ extern void FlushBufferPool(int StableMainMemoryFlag); extern BlockNumber BufferGetBlockNumber(Buffer buffer); extern Relation BufferGetRelation(Buffer buffer); extern BlockNumber RelationGetNumberOfBlocks(Relation relation); -extern void ReleaseRelationBuffers(Relation rdesc); +extern void ReleaseRelationBuffers(Relation rel); extern void DropBuffers(Oid dbid); extern void PrintBufferDescs(void); extern void PrintPinnedBufs(void); diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index e359c526f0..26453ddae4 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: builtins.h,v 1.46 1998/07/12 21:29:38 momjian Exp $ + * $Id: builtins.h,v 1.47 1998/08/19 02:04:03 momjian Exp $ * * NOTES * This should normally only be included by fmgr.h. @@ -165,6 +165,7 @@ extern int32 btint42cmp(int32 a, int16 b); extern int32 btfloat4cmp(float32 a, float32 b); extern int32 btfloat8cmp(float64 a, float64 b); extern int32 btoidcmp(Oid a, Oid b); +extern int32 btoid8cmp(Oid a[], Oid b[]); extern int32 btabstimecmp(AbsoluteTime a, AbsoluteTime b); extern int32 btcharcmp(char a, char b); extern int32 btnamecmp(NameData *a, NameData *b); @@ -334,6 +335,10 @@ extern char *oidout(Oid o); extern bool oideq(Oid arg1, Oid arg2); extern bool oidne(Oid arg1, Oid arg2); extern bool oid8eq(Oid arg1[], Oid arg2[]); +extern bool oid8lt(Oid arg1[], Oid arg2[]); +extern bool oid8le(Oid arg1[], Oid arg2[]); +extern bool oid8ge(Oid arg1[], Oid arg2[]); +extern bool oid8gt(Oid arg1[], Oid arg2[]); extern bool oideqint4(Oid arg1, int32 arg2); extern bool int4eqoid(int32 arg1, Oid arg2); extern text *oid_text(Oid arg1); @@ -484,7 +489,7 @@ extern bool time_gt(TimeADT *time1, TimeADT *time2); extern bool time_ge(TimeADT *time1, TimeADT *time2); extern int time_cmp(TimeADT *time1, TimeADT *time2); extern TimeADT *datetime_time(DateTime *datetime); -extern int32 int42reltime(int32 timevalue); +extern int32 int4reltime(int32 timevalue); /* like.c */ extern bool namelike(NameData *n, struct varlena * p); diff --git a/src/include/utils/oidcompos.h b/src/include/utils/oidcompos.h deleted file mode 100644 index 5f58d11d52..0000000000 --- a/src/include/utils/oidcompos.h +++ /dev/null @@ -1,52 +0,0 @@ -/*------------------------------------------------------------------------- - * - * oidcompos.h-- - * prototype file for the oid {name,int4} composite type functions. - * - * - * Copyright (c) 1994, Regents of the University of California - * - * $Id: oidcompos.h,v 1.6 1998/04/26 04:09:28 momjian Exp $ - * - *------------------------------------------------------------------------- - */ -#ifndef OIDCOMPOS_H -#define OIDCOMPOS_H - -/* oidint4.c */ -OidInt4 oidint4in(char *o); -char *oidint4out(OidInt4 o); -bool oidint4lt(OidInt4 o1, OidInt4 o2); -bool oidint4le(OidInt4 o1, OidInt4 o2); -bool oidint4eq(OidInt4 o1, OidInt4 o2); -bool oidint4ge(OidInt4 o1, OidInt4 o2); -bool oidint4gt(OidInt4 o1, OidInt4 o2); -bool oidint4ne(OidInt4 o1, OidInt4 o2); -int oidint4cmp(OidInt4 o1, OidInt4 o2); -OidInt4 mkoidint4(Oid v_oid, uint32 v_int4); - -/* oidint2.c */ -OidInt2 oidint2in(char *o); -char *oidint2out(OidInt2 o); -bool oidint2lt(OidInt2 o1, OidInt2 o2); -bool oidint2le(OidInt2 o1, OidInt2 o2); -bool oidint2eq(OidInt2 o1, OidInt2 o2); -bool oidint2ge(OidInt2 o1, OidInt2 o2); -bool oidint2gt(OidInt2 o1, OidInt2 o2); -bool oidint2ne(OidInt2 o1, OidInt2 o2); -int oidint2cmp(OidInt2 o1, OidInt2 o2); -OidInt2 mkoidint2(Oid v_oid, uint16 v_int2); - -/* oidname.c */ -OidName oidnamein(char *inStr); -char *oidnameout(OidName oidname); -bool oidnamelt(OidName o1, OidName o2); -bool oidnamele(OidName o1, OidName o2); -bool oidnameeq(OidName o1, OidName o2); -bool oidnamene(OidName o1, OidName o2); -bool oidnamege(OidName o1, OidName o2); -bool oidnamegt(OidName o1, OidName o2); -int oidnamecmp(OidName o1, OidName o2); -OidName mkoidname(Oid id, char *name); - -#endif /* OIDCOMPOS_H */ diff --git a/src/include/utils/rel.h b/src/include/utils/rel.h index 8b1d45edb1..edfd5d47b8 100644 --- a/src/include/utils/rel.h +++ b/src/include/utils/rel.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: rel.h,v 1.17 1998/02/26 04:44:09 momjian Exp $ + * $Id: rel.h,v 1.18 1998/08/19 02:04:07 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -146,12 +146,12 @@ typedef Relation *RelationPtr; /* - * RelationGetRelationId -- + * RelationGetRelid -- * * returns the object id of the relation * */ -#define RelationGetRelationId(relation) ((relation)->rd_id) +#define RelationGetRelid(relation) ((relation)->rd_id) /* * RelationGetFile -- diff --git a/src/include/utils/syscache.h b/src/include/utils/syscache.h index 712345614b..add859e5ea 100644 --- a/src/include/utils/syscache.h +++ b/src/include/utils/syscache.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: syscache.h,v 1.10 1998/02/26 04:44:11 momjian Exp $ + * $Id: syscache.h,v 1.11 1998/08/19 02:04:09 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -15,6 +15,8 @@ #include <access/attnum.h> #include <access/htup.h> +#include <storage/buf.h> +#include <utils/rel.h> /* #define CACHEDEBUG *//* turns DEBUG elogs on */ @@ -67,8 +69,7 @@ */ struct cachedesc { - char *name; /* this is Name * so that we can - * initialize it */ + char *name; /* this is Name so that we can initialize it */ int nkeys; int key[4]; int size; /* sizeof(appropriate struct) */ @@ -80,18 +81,18 @@ struct cachedesc extern void zerocaches(void); extern void InitCatalogCache(void); extern HeapTuple -SearchSysCacheTuple(int cacheId, Datum key1, Datum key2, - Datum key3, Datum key4); +SearchSysCacheTupleCopy(int cacheId, + Datum key1, Datum key2, Datum key3, Datum key4); +extern HeapTuple +SearchSysCacheTuple(int cacheId, + Datum key1, Datum key2, Datum key3, Datum key4); extern int32 SearchSysCacheStruct(int cacheId, char *returnStruct, Datum key1, Datum key2, Datum key3, Datum key4); extern void * SearchSysCacheGetAttribute(int cacheId, AttrNumber attributeNumber, - Datum key1, - Datum key2, - Datum key3, - Datum key4); + Datum key1, Datum key2, Datum key3, Datum key4); extern void *TypeDefaultRetrieve(Oid typId); #endif /* SYSCACHE_H */ |