pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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: Thu, 2 Oct 2003 16:40:08 -0700
Message-ID: <001c01c3893e$871dca40$5c976b80@amer.cisco.com> (raw)
In-Reply-To: <12586.1065134741@sss.pgh.pa.us>

Tom,

You were right, 1 or 2 of the large objects weren't actually getting
removed from the table, each cycle. I wasn't running on a completely
empty database when I first started, so I didn't notice the undeleted
objects.

The program which interfaces to the database uses the JDBC method
LargeObject.delete() to delete the large object associated to the entry
in the users data table. Plus every night I have a program which goes
through the database and checks for and removes large objects which are
no longer being referenced by any table.

I am now trying to find out why the occasion entry doesn't get deleted.

Chris

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
Sent: Thursday, October 02, 2003 3:46 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:
> The index has grown by 4 pages and the table has grown by 10 pages. 
> BTW, what is a page size? Why is this happening as this is the table 
> that I am theoretically keeping the same size by adding/deleting the 
> same objects from.

Kinda looks like you aren't doing anything to remove
no-longer-referenced large objects.  An LO is not a BLOB; it has an
independent existence.  You may care to look into contrib/lo and/or
contrib/vacuumlo.  Or possibly you should be using wide text or bytea
fields, not large objects at all...

			regards, tom lane




view thread (15+ messages)  latest in thread

Message-ID: <001c01c3893e$871dca40$5c976b80@amer.cisco.com>
Permalink:  ../001c01c3893e$871dca40$5c976b80@amer.cisco.com/
Also on:    postgresql.org/message-id/001c01c3893e$871dca40$5c976b80@amer.cisco.com

 · 

reply

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: <001c01c3893e$871dca40$5c976b80@amer.cisco.com>
  References: <12586.1065134741@sss.pgh.pa.us> <001c01c3893e$871dca40$5c976b80@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