diff options
author | Joe Conway <mail@joeconway.com> | 2010-09-11 18:38:58 +0000 |
---|---|---|
committer | Joe Conway <mail@joeconway.com> | 2010-09-11 18:38:58 +0000 |
commit | 5eb15c9942a9bd6aaf712f2ab6175005e035168a (patch) | |
tree | 5795253ca2eeb8850761da17341ee062078894a0 /src/backend/executor/execMain.c | |
parent | 262c71ab63d5781cd68b23d2058cbb45ad67a54c (diff) | |
download | postgresql-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/backend/executor/execMain.c')
-rw-r--r-- | src/backend/executor/execMain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 7dfb2ecbb6b..f89f85d14cf 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -26,7 +26,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.354 2010/08/05 14:45:02 rhaas Exp $ + * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.355 2010/09/11 18:38:56 joe Exp $ * *------------------------------------------------------------------------- */ @@ -1554,7 +1554,7 @@ EvalPlanQualFetch(EState *estate, Relation relation, int lockmode, case HeapTupleUpdated: ReleaseBuffer(buffer); - if (IsXactIsoLevelSerializable) + if (IsolationUsesXactSnapshot()) ereport(ERROR, (errcode(ERRCODE_T_R_SERIALIZATION_FAILURE), errmsg("could not serialize access due to concurrent update"))); |