postgresql/src/test
Tom Lane 4bfe68dfab Run a portal's cleanup hook immediately when pushing it to FAILED state.
This extends the changes of commit 6252c4f9e2
so that we run the cleanup hook earlier for failure cases as well as
success cases.  As before, the point is to avoid an assertion failure from
an Assert I added in commit a874fe7b4c, which
was meant to check that no user-written code can be called during portal
cleanup.  This fixes a case reported by Pavan Deolasee in which the Assert
could be triggered during backend exit (see the new regression test case),
and also prevents the possibility that the cleanup hook is run after
portions of the portal's state have already been recycled.  That doesn't
really matter in current usage, but it foreseeably could matter in the
future.

Back-patch to 9.1 where the Assert in question was added.
2012-02-15 16:19:01 -05:00
..
examples Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
isolation Add simple tests of EvalPlanQual using the isolationtester infrastructure. 2012-01-28 17:55:08 -05:00
locale Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
mb Minor improvements to mbregress.sh script. 2011-09-01 09:21:10 -04:00
performance Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
regress Run a portal's cleanup hook immediately when pushing it to FAILED state. 2012-02-15 16:19:01 -05:00
thread Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00