Simon Riggs <simon(at)2ndQuadrant(dot)com> writes:
> It looks to me that generating a single error message while idle causes
> the server to provide ErrorResponse, which the client assumes is the end
> of the processing of that statement as defined in FE/BE protocol.
Yeah. I think this is actually a client-side issue: it should keep
reading till it gets a 'Z' message. Not clear how that fits into the
libpq-to-app API though.
regards, tom lane