aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJoe Conway <mail@joeconway.com>2010-09-11 18:38:58 +0000
committerJoe Conway <mail@joeconway.com>2010-09-11 18:38:58 +0000
commit5eb15c9942a9bd6aaf712f2ab6175005e035168a (patch)
tree5795253ca2eeb8850761da17341ee062078894a0 /src/include
parent262c71ab63d5781cd68b23d2058cbb45ad67a54c (diff)
downloadpostgresql-5eb15c9942a9bd6aaf712f2ab6175005e035168a.tar.gz
postgresql-5eb15c9942a9bd6aaf712f2ab6175005e035168a.zip
SERIALIZABLE transactions are actually implemented beneath the covers with
transaction snapshots, i.e. a snapshot registered at the beginning of a transaction. Change variable naming and comments to reflect this reality in preparation for a future, truly serializable mode, e.g. Serializable Snapshot Isolation (SSI). For the moment transaction snapshots are still used to implement SERIALIZABLE, but hopefully not for too much longer. Patch by Kevin Grittner and Dan Ports with review and some minor wording changes by me.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/access/xact.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/access/xact.h b/src/include/access/xact.h
index 12ec693f443..aa670a22ac8 100644
--- a/src/include/access/xact.h
+++ b/src/include/access/xact.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/access/xact.h,v 1.103 2010/02/26 02:01:21 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/access/xact.h,v 1.104 2010/09/11 18:38:58 joe Exp $
*
*-------------------------------------------------------------------------
*/
@@ -35,7 +35,7 @@ extern int XactIsoLevel;
* We only implement two isolation levels internally. This macro should
* be used to check which one is selected.
*/
-#define IsXactIsoLevelSerializable (XactIsoLevel >= XACT_REPEATABLE_READ)
+#define IsolationUsesXactSnapshot() (XactIsoLevel >= XACT_REPEATABLE_READ)
/* Xact read-only state */
extern bool DefaultXactReadOnly;