Frank van Vugt <ftm(dot)van(dot)vugt(at)foxi(dot)nl> writes:
> So this took a while, but here's your test case.....
> Turns out to be quite small actually ;)
Hmm ... the relevant code change seems to have been
http://archives.postgresql.org/pgsql-committers/2009-04/msg00127.php
I think I might have been overenthusiastic in trying to free resources
during a subtransaction abort. Try this patch and see if you notice
any bad side-effects.
regards, tom lane