pgsql: Teach AbortOutOfAnyTransaction to clean up partially-started tra - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Teach AbortOutOfAnyTransaction to clean up partially-started tra
Date
Msg-id E1SZDZR-0004EF-Et@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Teach AbortOutOfAnyTransaction to clean up partially-started transactions.

AbortOutOfAnyTransaction failed to do anything if the state it saw on
entry corresponded to failing partway through StartTransaction.  I fixed
AbortCurrentTransaction to cope with that case way back in commit
60b2444cc3ba037630c9b940c3c9ef01b954b87b, but evidently overlooked that
AbortOutOfAnyTransaction should do likewise.

Back-patch to all supported branches.  It's not clear that this omission
has any more-than-cosmetic consequences, but it's also not clear that it
doesn't, so back-patching seems the least risky choice.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/73bf9b77fc28840a335002d8dc817e8706d9a2ce

Modified Files
--------------
src/backend/access/transam/xact.c |   19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Teach AbortOutOfAnyTransaction to clean up partially-started tra
Next
From: Tom Lane
Date:
Subject: pgsql: Teach AbortOutOfAnyTransaction to clean up partially-started tra