Re: IN FIRE

From: "Mario Weilguni" <mweilguni(at)sime(dot)com>
To: "Stanislav Silnitski" <stalker(at)minicorp(dot)ru>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: IN FIRE
Date: 2002-09-10 14:25:12
Message-ID: 002801c258d5$e0927c50$6f01c00a@icomedias.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> 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)!!!!

Use transactions (BEGIN; END;). Large objects rely on this

In response to

  • IN FIRE at 2002-09-09 16:01:12 from Stanislav Silnitski

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-09-10 14:46:37 Re: Rule updates and PQcmdstatus() issue
Previous Message Tom Lane 2002-09-10 14:15:59 Re: PREPARE code notes