diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/access/heapam.h | 3 | ||||
-rw-r--r-- | src/include/catalog/pg_operator.h | 5 | ||||
-rw-r--r-- | src/include/catalog/pg_proc.h | 9 | ||||
-rw-r--r-- | src/include/utils/builtins.h | 10 |
4 files changed, 22 insertions, 5 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h index b6dccc33fa8..b672b58053e 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.46 1999/09/18 19:08:13 tgl Exp $ + * $Id: heapam.h,v 1.47 1999/10/11 06:28:29 inoue Exp $ * *------------------------------------------------------------------------- */ @@ -256,6 +256,7 @@ 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 void heap_fetch(Relation relation, Snapshot snapshot, HeapTuple tup, Buffer *userbuf); +extern ItemPointer heap_get_latest_tid(Relation relation, Snapshot snapshot, ItemPointer tid); extern Oid heap_insert(Relation relation, HeapTuple tup); extern int heap_delete(Relation relation, ItemPointer tid, ItemPointer ctid); extern int heap_replace(Relation relation, ItemPointer otid, HeapTuple tup, diff --git a/src/include/catalog/pg_operator.h b/src/include/catalog/pg_operator.h index 5667b870e68..c23f67a4c66 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.59 1999/09/06 21:16:18 tgl Exp $ + * $Id: pg_operator.h,v 1.60 1999/10/11 06:28:29 inoue Exp $ * * NOTES * the genbki.sh script reads this file and generates .bki @@ -136,6 +136,9 @@ DATA(insert OID = 399 ( "=" PGUID 0 b t f 1026 1026 16 399 0 0 0 array_e DATA(insert OID = 400 ( "=" PGUID 0 b t f 1027 1027 16 400 0 0 0 array_eq eqsel eqjoinsel )); DATA(insert OID = 401 ( "=" PGUID 0 b t f 1034 1034 16 401 0 0 0 array_eq eqsel eqjoinsel )); +DATA(insert OID = 387 ( "=" PGUID 0 b t t 27 27 16 387 0 0 0 tideq eqsel eqjoinsel )); +#define TIDEqualOperator 387 + DATA(insert OID = 410 ( "=" PGUID 0 b t t 20 20 16 410 411 412 412 int8eq eqsel eqjoinsel )); DATA(insert OID = 411 ( "<>" PGUID 0 b t f 20 20 16 411 410 0 0 int8ne neqsel neqjoinsel )); DATA(insert OID = 412 ( "<" PGUID 0 b t f 20 20 16 413 415 0 0 int8lt intltsel intltjoinsel )); diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index 24e74f0e624..89ff91c8e84 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.104 1999/09/30 14:54:23 wieck Exp $ + * $Id: pg_proc.h,v 1.105 1999/10/11 06:28:28 inoue Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki @@ -1560,6 +1560,13 @@ DESCR("truncate _char()"); DATA(insert OID = 1291 ( _varchar PGUID 11 f t t 2 f 1015 "1015 23" 100 0 0 100 _varchar - )); DESCR("truncate _varchar()"); +DATA(insert OID = 1292 ( tideq PGUID 11 f t f 2 f 16 "27 27" 100 0 0 100 tideq - )); +DESCR("equal"); +DATA(insert OID = 1293 ( currtid PGUID 11 f t f 2 f 27 "26 27" 100 0 0 100 currtid_byreloid - )); +DESCR("latest tid of a tuple"); +DATA(insert OID = 1294 ( currtid2 PGUID 11 f t f 2 f 27 "25 27" 100 0 0 100 currtid_byrelname - )); +DESCR("latest tid of a tuple"); + DATA(insert OID = 1297 ( timestamp_in PGUID 11 f t f 1 f 1296 "0" 100 0 0 100 timestamp_in - )); DESCR("(internal)"); DATA(insert OID = 1298 ( timestamp_out PGUID 11 f t f 1 f 23 "0" 100 0 0 100 timestamp_out - )); diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index da09be65243..fe6fd117187 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.88 1999/10/03 23:55:37 tgl Exp $ + * $Id: builtins.h,v 1.89 1999/10/11 06:28:28 inoue Exp $ * * NOTES * This should normally only be included by fmgr.h. @@ -399,8 +399,14 @@ extern float64 gistsel(Oid operatorObjectId, Oid indrelid, AttrNumber attributeN extern float64 gistnpage(Oid operatorObjectId, Oid indrelid, AttrNumber attributeNumber, char *constValue, int32 constFlag, int32 nIndexKeys, Oid indexrelid); /* tid.c */ -extern ItemPointer tidin(char *str); +extern ItemPointer tidin(const char *str); extern char *tidout(ItemPointer itemPtr); +extern bool tideq(ItemPointer,ItemPointer); +extern bool tidne(ItemPointer,ItemPointer); +extern text *tid_text(ItemPointer); +extern ItemPointer text_tid(const text *); +extern ItemPointer currtid_byreloid(Oid relOid, ItemPointer); +extern ItemPointer currtid_byrelname(const text* relName, ItemPointer); /* timestamp.c */ extern time_t timestamp_in(const char *timestamp_str); |