From: Chris White <cjwhite@cisco.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: pgsql-jdbc@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [JDBC] Problems with Large Objects using Postgres 7.2.1
Date: Wed, 9 Apr 2003 11:59:08 -0700
Message-ID: <012f01c2feca$1a3ab860$ff926b80@amer.cisco.com> (raw)
In-Reply-To: <8672.1049909301@sss.pgh.pa.us>
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!!
Chris
-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Wednesday, April 09, 2003 10:28 AM
To: cjwhite@cisco.com
Cc: pgsql-jdbc@postgresql.org; pgsql-admin@postgresql.org
Subject: Re: [JDBC] [ADMIN] Problems with Large Objects using Postgres
7.2.1
"Chris White" <cjwhite@cisco.com> writes:
> I didn't looked at the data in the table. However, when I did a lo_export
of
> one of the objects I only got a 2K file output.
IIRC, we store 2K per row in pg_largeobject. So this is consistent with
the idea that row 0 is present for the LO ID, while row 1 is not. What
I'm wondering is if the other hundred-odd rows that would be needed to
hold a 300K large object are there or not. Also, do the rows contain
the appropriate data for their parts of the overall large object?
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: cjwhite@cisco.com, tgl@sss.pgh.pa.us, pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Problems with Large Objects using Postgres 7.2.1
In-Reply-To: <012f01c2feca$1a3ab860$ff926b80@amer.cisco.com>
References: <8672.1049909301@sss.pgh.pa.us> <012f01c2feca$1a3ab860$ff926b80@amer.cisco.com>
* 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