OSDN Git Service

While fixing plperl and pltcl, I realized plpgsql wasn't doing
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Nov 2004 22:27:34 +0000 (22:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Nov 2004 22:27:34 +0000 (22:27 +0000)
commit183e8b911c452de056fe8d355017c9edd1ee3c74
treede0518742dfc9430ea220e35a042ba634ea0c6a0
parent32c97fd58ffdd5c7b62e9bc80d6311b608823218
While fixing plperl and pltcl, I realized plpgsql wasn't doing
subtransactions quite right either: the ReleaseCurrentSubTransaction
call should occur inside the PG_TRY, so that the proper path is taken
if an error occurs during subtransaction commit.  This assumes that
AbortSubTransaction can cope with the state left behind if
CommitSubTransaction fails partway through, but we were already
requiring that.
src/pl/plpgsql/src/pl_exec.c