pgsql: Teach AbortOutOfAnyTransaction to clean up partially-started tra

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Teach AbortOutOfAnyTransaction to clean up partially-started tra
Date: 2012-05-29 03:58:09
Message-ID: E1SZDZR-0004EJ-FH@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
REL8_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/b3d9db4617a265a9778915c7085f497ed8a88219

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

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-05-29 19:00:02 Re: Re: [COMMITTERS] pgsql: Ensure age() returns a stable value rather than the latest value
Previous Message Tom Lane 2012-05-29 00:38:51 pgsql: Eliminate some more O(N^2) behaviors in pg_dump/pg_restore.