"Taso Hatzi" <taso(at)aanet(dot)com(dot)au> writes:
> It looks to me like a thread isolation problem.
If you have multiple threads accessing the same connection, it's
up to *you* to provide interlocking to make sure they don't try
to issue concurrent queries; libpq has no internal mutex for that.
I believe similar statements hold for ECPG's state.
regards, tom lane