From: KOOPMAN,JON (A-SantaClara,ex1) <jon_koopman@agilent.com>
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: LargeObject storage doesn't go away
Date: Fri, 31 Mar 2000 15:41:58 -0700
Message-ID: <636A5397F77BD311B86B0090278CE58A9274BF@axcs02.cs.itc.hp.com> (raw)
I recently started playing with the Large Object usage
in PostgreSQL 6.5.3.
Apparently LargeObjects in PostgreSQL are garbage collected
between creation and opening unless the creation and
opening are done within a database transaction. In fact
any large object OID is lost unless the OID is stored in
a table(class) before ending the database transaction.
I've provided patches I made to the libpq++ PgLargeObject
class, and the Java/JDBC examples to make them work
properly with this restriction. See pgsql-patches:
"libpq++ PgLargeObject patch"
"Java/JDBC LargeObject examples patch"
However I've just noticed that these "orphaned" large
objects are still consuming space on my disk! I can't
access them by OID using lo_open() (or variants on this),
but the files:
$PGDATA/base/template1/xinv{OID}
$PGDATA/base/template1/xinx{OID}
still exist for each orphaned OID (and I've done a
"vacuum analyze") on the database.
Can someone explain what's happening, and possibly a
workaround to get rid of these "orphaned" Large Objects
without deleting others that are still tied into a
table(class) in the database (and thus still accessible
via the LargeObject functions/methods).
Thanks,
Jon Koopman
jon_koopman@agilent.com
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: jon_koopman@agilent.com
Subject: Re: LargeObject storage doesn't go away
In-Reply-To: <636A5397F77BD311B86B0090278CE58A9274BF@axcs02.cs.itc.hp.com>
References: <636A5397F77BD311B86B0090278CE58A9274BF@axcs02.cs.itc.hp.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