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



---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to