pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vivek Khera <vivek@khera.org>
To: pgsql-performance Performance <pgsql-performance@postgresql.org>
Subject: Re: Replication Syatem
Date: Tue, 29 Apr 2008 11:00:57 -0400
Message-ID: <5C077297-F9AA-4890-87BF-DFBC677DEDFF@khera.org> (raw)
In-Reply-To: <873.1209478562@sss.pgh.pa.us>
References: <7e4ba9550804280638ie81dc23w472785c83cd38fcf@mail.gmail.com>
	<a2de01dd0804280658t68ac22dsf182d304a94de5a2@mail.gmail.com>
	<7e4ba9550804280705q43c51e66l104a5ff9272bbd4d@mail.gmail.com>
	<20080428162243.GN2970@commandprompt.com>
	<7e4ba9550804282246p73c62fc6y5e7cb7dda55a6b50@mail.gmail.com>
	<Pine.GSO.4.64.0804290347560.20575@westnet.com>
	<873.1209478562@sss.pgh.pa.us>


On Apr 29, 2008, at 10:16 AM, Tom Lane wrote:

> Greg Smith <gsmith@gregsmith.com> writes:
>> The model here assumes that you'll need that space again for the  
>> next time
>> you UPDATE or INSERT a row.  So instead VACUUM just keeps those  
>> available
>> for database reuse rather than returning it to the operating system.
[ ... ]
> Also, you need to make sure you have the FSM parameters set high  
> enough
> so that all the free space found by a VACUUM run can be remembered.
>
> The less often you run VACUUM, the more FSM space you need, because
> there'll be more free space reclaimed per run.

I can actually watch one of our applications slow down once the free  
space in the table is used up.  Extending the data file seems to be  
much more expensive than using the free space found in existing pages  
of the file.




view thread (48+ messages)  latest in thread

Message-ID: <5C077297-F9AA-4890-87BF-DFBC677DEDFF@khera.org>
Permalink:  ../5C077297-F9AA-4890-87BF-DFBC677DEDFF@khera.org/
Also on:    postgresql.org/message-id/5C077297-F9AA-4890-87BF-DFBC677DEDFF@khera.org

 · 

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-performance@postgresql.org
  Cc: vivek@khera.org
  Subject: Re: Replication Syatem
  In-Reply-To: <5C077297-F9AA-4890-87BF-DFBC677DEDFF@khera.org>
  References: <7e4ba9550804280638ie81dc23w472785c83cd38fcf@mail.gmail.com> <a2de01dd0804280658t68ac22dsf182d304a94de5a2@mail.gmail.com> <7e4ba9550804280705q43c51e66l104a5ff9272bbd4d@mail.gmail.com> <20080428162243.GN2970@commandprompt.com> <7e4ba9550804282246p73c62fc6y5e7cb7dda55a6b50@mail.gmail.com> <Pine.GSO.4.64.0804290347560.20575@westnet.com> <873.1209478562@sss.pgh.pa.us> <5C077297-F9AA-4890-87BF-DFBC677DEDFF@khera.org>

* 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