Dave Cramer <Dave@micro-automation.net> writes:
> I thought about this, and it presumes that the driver knows that it is
> in a transaction. At this point the driver has tried to stay pretty
> lightweight assuming the programmer would take care of these things, so
> it doesn't even know that it is in a transaction.
One of the proposals on the table for 7.4 is to extend the FE/BE
protocol so that the backend will report its in-transaction status
at the end of each query cycle. Not sure if that'll help you.
regards, tom lane