pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Y Sidhu <ysidhu@gmail.com>
Cc: Bill Moran <wmoran@collaborativefusion.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: pg_stats how-to?
Date: Mon, 14 May 2007 20:20:49 -0400
Message-ID: <1623.1179188449@sss.pgh.pa.us> (raw)
In-Reply-To: <b09064f30705141515l5c7ec56n215dbd85f93bf6c2@mail.gmail.com>
References: <4647B0A9.7080304@gmail.com>
	<20070514162610.GO69517@nasby.net>
	<b09064f30705140928x6b44f03dtdb93ebd18e7cdaca@mail.gmail.com>
	<20070514174558.GS69517@decibel.org>
	<b09064f30705141109m7c2f57an802f8fe0485a65bb@mail.gmail.com>
	<20070514183615.GW69517@nasby.net>
	<b09064f30705141202o2cd183d7ta6914da150f3f503@mail.gmail.com>
	<20070514190748.GY69517@nasby.net>
	<b09064f30705141353p4f502135s5409c8c31c20718e@mail.gmail.com>
	<20070514170959.a951eefc.wmoran@collaborativefusion.com>
	<b09064f30705141515l5c7ec56n215dbd85f93bf6c2@mail.gmail.com>

"Y Sidhu" <ysidhu@gmail.com> writes:
> it may be table fragmentation. What kind of tables? We have 2 of them which
> experience lots of adds and deletes only. No updates. So a typical day
> experiences record adds a few dozen times on the order of 2.5 million. And
> deletes once daily. Each of these tables has about 3 btree indexes.

With an arrangement like that you should vacuum once daily, shortly
after the deletes --- there's really no point in doing it on any other
schedule.  Note "shortly" not "immediately" --- you want to be sure that
any transactions old enough to see the deleted rows have ended.

			regards, tom lane



view thread (18+ messages)  latest in thread

Message-ID: <1623.1179188449@sss.pgh.pa.us>
Permalink:  ../1623.1179188449@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1623.1179188449@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ysidhu@gmail.com, wmoran@collaborativefusion.com
  Subject: Re: pg_stats how-to?
  In-Reply-To: <1623.1179188449@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