From: Chris White (cjwhite) <cjwhite@cisco.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: 'Robert Treat' <xzilla@users.sourceforge.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Question about DB VACUUM
Date: Mon, 6 Oct 2003 21:20:43 -0700
Message-ID: <000401c38c8a$6270f010$0400a8c0@amer.cisco.com> (raw)
In-Reply-To: <20438.1065499687@sss.pgh.pa.us>
Okay now I understand what is going on. I have a second thread which is
being used to read these objects out of the database to present to the
user, and because large objects can only be accessed in a transaction
mode I have not closed the transaction on this thread. Should I do a
commit or rollback to terminate the transaction, once I have closed the
large object, even though I have not done any modifications to the large
objects?
Chris
-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Monday, October 06, 2003 9:08 PM
To: cjwhite@cisco.com
Cc: 'Robert Treat'; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Question about DB VACUUM
"Chris White \(cjwhite\)" <cjwhite@cisco.com> writes:
> But as you could see from the prior query \lo_list showed no large
> objects, this was done just prior to the vacuum.
> aesop=# \lo_list
> Large objects
> ID | Description
> ----+-------------
> (0 rows)
> aesop=# vacuum verbose pg_largeobject;
> NOTICE: --Relation pg_largeobject--
> NOTICE: Index pg_largeobject_loid_pn_index: Pages 2819; Tuples 460:
> Deleted 84.
This would seem to indicate that you have open transactions hanging
around somewhere in the background. VACUUM can't delete tuples that
might still be visible under MVCC rules to some open 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: cjwhite@cisco.com, tgl@sss.pgh.pa.us, xzilla@users.sourceforge.net
Subject: Re: Question about DB VACUUM
In-Reply-To: <000401c38c8a$6270f010$0400a8c0@amer.cisco.com>
References: <20438.1065499687@sss.pgh.pa.us> <000401c38c8a$6270f010$0400a8c0@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