IN FIRE

From: Stanislav Silnitski <stalker(at)minicorp(dot)ru>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: IN FIRE
Date: 2002-09-09 16:01:12
Message-ID: 20020909193809.D869-100000@home.lan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


HELP!!!

I'm stuck for strange reason!
This is my first attempt to use pg_lo concept in my apps:

...
Oid oid;
PGconn* dbcon = PQconnectdb(conninfo.c_str());
oid = lo_creat(dbcon, INV_WRITE | INV_READ);
int pgfd = lo_open(dbcon, oid, INV_WRITE | INV_READ);
...

lo_open ALWAYS returns -1 while oid is positive (I can even see oid
in pg_largeobject system table)!!!!

postmaster reports the following:
ERROR: lo_lseek: invalid large obj descriptor (0)

I realy NEED a prompt advice!

Please find a couple of minutes for reply!
TIA
Stanislav

ps> I run FreeBSD-4.4 + ported PostgreSQL-7.1.3
pps> my other pg-connected apps run OK

Responses

  • Re: IN FIRE at 2002-09-10 12:56:24 from Doug McNaught
  • Re: IN FIRE at 2002-09-10 14:25:12 from Mario Weilguni

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-09-09 16:10:37 Re: bug?
Previous Message Tom Lane 2002-09-09 15:51:08 Re: PREPARE code notes