Re: libpg: large object problems - Mailing list pgsql-novice

From greg@turnstep.com
Subject Re: libpg: large object problems
Date
Msg-id 368e408ac6c9457106859cd97086d479@biglumber.com
Whole thread Raw
In response to Re: libpg: large object problems  (Seth Nickell <snickell@stanford.edu>)
List pgsql-novice
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> I'm unfortunately still having problems :-( Can I only do one lo_
> operation per transaction? e.g. is this valid?

Perfectly valid.

> If I only put one lo_ operation per transaction, I get back "0" for the
> fd (is this a valid fd?).

Yes, "0" is not only valid, but fairly common, as it is the fist "slot"
used for large objects.

Other than that, I think you are almost there if you institute the changes
Tom mentioned. Particularly, make sure you check the values of the lo_*
operations to see if they are returning a negative number.

- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200305032058

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE+tGctvJuQZxSWSsgRAr9aAJ4zX5Kl3TxO6CyzPifuXXGgjH+UUACggNs3
zIwyRHIV2UymA3fCy8miJSY=
=NYiw
-----END PGP SIGNATURE-----


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: libpg: large object problems
Next
From: Bob Hartung
Date:
Subject: How to recover error message at boot time?