"DUVAL Jean-Pierre" <jp.duval@up-comp.com> writes:
> It seems that PQprepare() is using something like DECLARE CURSOR WITHOUT
> HOLD, that is impacted by transactions:
> X) Either destroyed at the end of the transaction.
> Y) Or not possible to do when a transaction is open.
This conclusion is incorrect. I can't tell what's going wrong in your
program, because you did not show it to us, but that's not it.
regards, tom lane