diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/access/heapam.h | 4 | ||||
-rw-r--r-- | src/include/utils/snapshot.h | 15 | ||||
-rw-r--r-- | src/include/utils/tqual.h | 12 |
3 files changed, 17 insertions, 14 deletions
diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h index a6dda552f2e..4a47973f9c4 100644 --- a/src/include/access/heapam.h +++ b/src/include/access/heapam.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/heapam.h,v 1.131 2008/03/08 21:57:59 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/heapam.h,v 1.132 2008/03/26 21:10:39 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -23,7 +23,7 @@ #include "storage/block.h" #include "storage/lmgr.h" #include "utils/rel.h" -#include "utils/tqual.h" +#include "utils/snapshot.h" /* ---------------- * fastgetattr diff --git a/src/include/utils/snapshot.h b/src/include/utils/snapshot.h index 7dca978ee98..20d971a102a 100644 --- a/src/include/utils/snapshot.h +++ b/src/include/utils/snapshot.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/snapshot.h,v 1.1 2008/03/26 16:20:48 alvherre Exp $ + * $PostgreSQL: pgsql/src/include/utils/snapshot.h,v 1.2 2008/03/26 21:10:39 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -59,4 +59,17 @@ typedef struct SnapshotData CommandId curcid; /* in my xact, CID < curcid are visible */ } SnapshotData; +/* + * Result codes for HeapTupleSatisfiesUpdate. This should really be in + * tqual.h, but we want to avoid including that file elsewhere. + */ +typedef enum +{ + HeapTupleMayBeUpdated, + HeapTupleInvisible, + HeapTupleSelfUpdated, + HeapTupleUpdated, + HeapTupleBeingUpdated +} HTSU_Result; + #endif /* SNAPSHOT_H */ diff --git a/src/include/utils/tqual.h b/src/include/utils/tqual.h index c9e078369f3..d165e8696a2 100644 --- a/src/include/utils/tqual.h +++ b/src/include/utils/tqual.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/tqual.h,v 1.72 2008/03/26 16:20:48 alvherre Exp $ + * $PostgreSQL: pgsql/src/include/utils/tqual.h,v 1.73 2008/03/26 21:10:39 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -54,16 +54,6 @@ extern PGDLLIMPORT SnapshotData SnapshotToastData; #define HeapTupleSatisfiesVisibility(tuple, snapshot, buffer) \ ((*(snapshot)->satisfies) ((tuple)->t_data, snapshot, buffer)) -/* Result codes for HeapTupleSatisfiesUpdate */ -typedef enum -{ - HeapTupleMayBeUpdated, - HeapTupleInvisible, - HeapTupleSelfUpdated, - HeapTupleUpdated, - HeapTupleBeingUpdated -} HTSU_Result; - /* Result codes for HeapTupleSatisfiesVacuum */ typedef enum { |