On 2014-01-02 21:21:15 +0200, Heikki Linnakangas wrote:
> I don't see any other realistic way to fix this, however, so maybe we
> should just bite the bullet and do it anyway.
We could remember the subtransaction a variable was created in and error
out if it the creating subtransaction aborted and it's not a
pass-by-value datum or similar.
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services