From: Tom Lane <tgl@sss.pgh.pa.us>
To: John David Garza <garza@cjas.org>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] jdbc, pgsql6.5.1, large objects
Date: Fri, 30 Jul 1999 09:57:43 -0400
Message-ID: <11032.933343063@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSF.4.10.9907292129190.46423-100000@localhost>
John David Garza <garza@cjas.org> writes:
> FastPath call returned ERROR: lo_write: invalid large obj descriptor (0)
This is achieving FAQ status very rapidly. 6.5 enforces the rule that
large object descriptors can only be used within a single transaction.
(This rule has always been in the documentation, but prior releases
didn't check, and most of the time referring to an LO opened in an
old transaction would still work...)
So you need an explicit begin/end transaction around your lo_open ...
lo_close sequence. In JDBC I think you gotta turn off autocommit,
but I'm not familiar enough with JDBC to quote exact commands for you.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, garza@cjas.org
Subject: Re: [INTERFACES] jdbc, pgsql6.5.1, large objects
In-Reply-To: <11032.933343063@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox