Re: Unable to open large object.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Yuichi Tanaka <yuichi_tanaka(at)cybozu(dot)co(dot)jp>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Unable to open large object.
Date: 2009-02-27 05:58:07
Message-ID: 12608.1235714287@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Yuichi Tanaka 2009-02-27 06:47:20 Re: Unable to open large object.
Previous Message Yuichi Tanaka 2009-02-27 00:42:37 Unable to open large object.