Yuichi Tanaka <yuichi_tanaka(at)cybozu(dot)co(dot)jp> writes:
> Do I always have to call PQgetResult until this function returns NULL pointer?
Yes. Failing to do that is an erroneous use of PQsendQuery, and it has
nothing particularly to do with large objects. Once you've done
PQsendQuery, you *must* repeat PQgetResult until you get NULL before
any other command can be issued on that connection.
regards, tom lane