Re: libpg: large object problems

From: greg(at)turnstep(dot)com
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: libpg: large object problems
Date: 2003-05-04 01:05:23
Message-ID: 368e408ac6c9457106859cd97086d479@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)turnstep(dot)com
PGP Key: 0x14964AC8 200305032058

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

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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Bob Hartung 2003-05-04 06:08:41 How to recover error message at boot time?
Previous Message Tom Lane 2003-05-04 00:18:34 Re: libpg: large object problems