From: Tom Lane <tgl@sss.pgh.pa.us>
To: cjwhite@cisco.com
Cc: pgsql-jdbc@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [JDBC] Problems with Large Objects using Postgres 7.2.1
Date: Wed, 09 Apr 2003 15:20:13 -0400
Message-ID: <9428.1049916013@sss.pgh.pa.us> (raw)
In-Reply-To: <012f01c2feca$1a3ab860$ff926b80@amer.cisco.com>
References: <012f01c2feca$1a3ab860$ff926b80@amer.cisco.com>
"Chris White" <cjwhite@cisco.com> writes:
> Looking at our code further, the actual code writes the large object commits
> it, opens the large object updates the header of the large object (first 58
> bytes) with some length info using seeks, then writes and commits the object
> again, before updating and committing the associated tables. The data I saw
> in the exported file was the header info without the updates for the length
> info i.e. after the first commit!!
Oh, that's interesting. I wonder whether you could be running into some
variant of this issue:
http://archives.postgresql.org/pgsql-hackers/2002-05/msg00875.php
I looked a little bit at fixing this, but wasn't sure how to get the
appropriate snapshot passed to the LO functions --- the global
QuerySnapshot might not be the right thing, but then what is? Also,
what if a transaction opens multiple LO handles for the same object
--- should they be able to see each others' updates? (I'm not sure
we could prevent it, so this may be moot.)
BTW what do you mean exactly by "commit" above? There is no notion of
committing a large object separately from committing a transaction.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, cjwhite@cisco.com, pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Problems with Large Objects using Postgres 7.2.1
In-Reply-To: <9428.1049916013@sss.pgh.pa.us>
References: <012f01c2feca$1a3ab860$ff926b80@amer.cisco.com> <9428.1049916013@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