| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Correctly detect SSI conflicts of prepared transactions after cr |
| Date: | 2012-02-29 13:55:17 |
| Message-ID: | E1S2jzx-0007oa-8g@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Correctly detect SSI conflicts of prepared transactions after crash.
A prepared transaction can get new conflicts in and out after preparing, so
we cannot rely on the in- and out-flags stored in the statefile at prepare-
time. As a quick fix, make the conservative assumption that after a restart,
all prepared transactions are considered to have both in- and out-conflicts.
That can lead to unnecessary rollbacks after a crash, but that shouldn't be
a big problem in practice; you don't want prepared transactions to hang
around for a long time anyway.
Dan Ports
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/86073a2b7acc58fce8701a9207a46adb41fbd8cc
Modified Files
--------------
src/backend/storage/lmgr/predicate.c | 31 +++++++++++++++----------------
1 files changed, 15 insertions(+), 16 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2012-02-29 17:11:33 | pgsql: Simplify references to backslash-doubling in func.sgml. |
| Previous Message | Tom Lane | 2012-02-29 05:24:11 | pgsql: Fix MSVC builds for previous patch's addition of a src/port file |