pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Tambet Matiisen <t.matiisen@aprote.ee>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bill Chandler <billybobc1210@yahoo.com>
Cc: pgsql-perform <pgsql-performance@postgresql.org>
Subject: Re: Question on REINDEX
Date: Tue, 19 Apr 2005 08:57:16 -0700
Message-ID: <200504190857.16634.josh@agliodbs.com> (raw)
In-Reply-To: <A66A11DBF5525341AEF6B8DE39CDE77008806E@black.aprote.com>
References: <A66A11DBF5525341AEF6B8DE39CDE77008806E@black.aprote.com>

Tambet,

> Hmm, thanks for a tip. BTW, is output of
>
> select count(1), sum(relpages) from pg_class where relkind in
> ('r','i','t')

Well, if you do that for all databases in the cluster, it's the number you 
start with.  However, setting FSM_pages to that would be assuming that you 
excpected 100% of the rows to be replaced by UPDATES or DELETEs before you 
ran VACUUM.   I generally run VACUUM a little sooner than that.

See the end portion of:
http://www.powerpostgresql.com/PerfList

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (12+ messages)  latest in thread

Message-ID: <200504190857.16634.josh@agliodbs.com>
Permalink:  ../200504190857.16634.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200504190857.16634.josh@agliodbs.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, t.matiisen@aprote.ee, tgl@sss.pgh.pa.us, billybobc1210@yahoo.com
  Subject: Re: Question on REINDEX
  In-Reply-To: <200504190857.16634.josh@agliodbs.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