summaryrefslogtreecommitdiff
path: root/src/include/access/xact.h
diff options
context:
space:
mode:
authorVadim B. Mikheev <vadim4o@yahoo.com>1998-07-27 19:38:40 +0000
committerVadim B. Mikheev <vadim4o@yahoo.com>1998-07-27 19:38:40 +0000
commitbe8300b18f26363c0b18c62fa884a6a62e26405e (patch)
treea44ac3f51d81a7616bd9c7912fa23a5e81c9d483 /src/include/access/xact.h
parentf7f989c9907b181f1785c699e6384e6eba8ae9a5 (diff)
downloadpostgresql-be8300b18f26363c0b18c62fa884a6a62e26405e.tar.gz
Use Snapshot in heap access methods.
Diffstat (limited to 'src/include/access/xact.h')
-rw-r--r--src/include/access/xact.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/include/access/xact.h b/src/include/access/xact.h
index 7abcb63e69..fa24882061 100644
--- a/src/include/access/xact.h
+++ b/src/include/access/xact.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: xact.h,v 1.13 1998/04/24 14:42:55 momjian Exp $
+ * $Id: xact.h,v 1.14 1998/07/27 19:38:30 vadim Exp $
*
*-------------------------------------------------------------------------
*/
@@ -22,14 +22,22 @@
*/
typedef struct TransactionStateData
{
- TransactionId transactionIdData;
- CommandId commandId;
- CommandId scanCommandId;
- AbsoluteTime startTime;
- int state;
- int blockState;
+ TransactionId transactionIdData;
+ CommandId commandId;
+ CommandId scanCommandId;
+ AbsoluteTime startTime;
+ int state;
+ int blockState;
} TransactionStateData;
+/*
+ * Xact isolation levels
+ */
+#define XACT_DIRTY_READ 0 /* not implemented */
+#define XACT_READ_COMMITTED 1
+#define XACT_REPEATABLE_READ 2 /* not implemented */
+#define XACT_SERIALIZED 3
+
/* ----------------
* transaction states
* ----------------