pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mike Darretta <michael.darretta.ctr@metnet.navy.mil>
Cc: pgsql-admin@postgresql.org
Subject: Re: Data Partition is Growing
Date: Wed, 29 Sep 2004 21:13:51 -0400
Message-ID: <8082.1096506831@sss.pgh.pa.us> (raw)
In-Reply-To: <415B49DA.4000503@metnet.navy.mil>
References: <415B49DA.4000503@metnet.navy.mil>

Mike Darretta <michael.darretta.ctr@metnet.navy.mil> writes:
> I'm an application developer trying to understand a pg data partition 
> issue. We are storing large objects (gifs) at a rate of about 1GIG /day. 
> After about a week, most of the objects are recycled -- that is, an 
> insert triggers a delete of a similar object. The postgres data 
> partition, though, continues to grow, even though the objects are 
> successfully deleted from the application *and* largeobject tables.

You need to check your free-space-map settings --- it sounds like the
FSM is not large enough to keep track of all the free space in
pg_largeobject.

If you do a "vacuum verbose" across the whole database, the tail end of
the (voluminous) printout will tell you something about where you need
to set the FSM parameters.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <8082.1096506831@sss.pgh.pa.us>
Permalink:  ../8082.1096506831@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8082.1096506831@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, michael.darretta.ctr@metnet.navy.mil
  Subject: Re: Data Partition is Growing
  In-Reply-To: <8082.1096506831@sss.pgh.pa.us>
  References: <415B49DA.4000503@metnet.navy.mil> <8082.1096506831@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