BUG #4674: Unable to open lob

From: "Yuichi Tanaka" <yuichi_tanaka(at)cybozu(dot)co(dot)jp>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4674: Unable to open lob
Date: 2009-02-24 07:27:24
Message-ID: 200902240727.n1O7ROn5097468@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 4674
Logged by: Yuichi Tanaka
Email address: yuichi_tanaka(at)cybozu(dot)co(dot)jp
PostgreSQL version: 8.3.6
Operating system: Linux
Description: Unable to open lob
Details:

I wrote the code like below:

// open lob
if( (pgsql_lofd1 = lo_open(pgsql, oid, pgsql_mode)) == -1 ) {
printf("error: first lo_open\n");
}

// send query asynchronously
PQsendQuery(pgsql, "INSERT INTO bar (name) VALUES ('aaa');" );

// open lob
if( (pgsql_lofd2 = lo_open(pgsql, oid+1, pgsql_mode)) == -1 ) {
printf("error: second lo_open\n");
}

This program displays "error: second lo_open".
Is this a bug or correct behavior?

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message kos41 2009-02-24 10:09:14 BUG #4675: FATAL: could not reattach to shared memory
Previous Message tomas 2009-02-23 14:28:32 Re: Link to MS Access