pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: problem with select count(*) ..
Date: Wed, 19 Nov 2003 09:49:59 -0600
Message-ID: <20031119154959.GA18327@wolff.to> (raw)
In-Reply-To: <3FBC1ADA.4040709@trade-india.com>
References: <3FBC1ADA.4040709@trade-india.com>

On Thu, Nov 20, 2003 at 07:07:30 +0530,
  Rajesh Kumar Mallah <mallah@trade-india.com> wrote:
> 
> If i dump and reload the performance improves and it takes < 1 sec. This
> is what i have been doing since the upgrade. But its not a solution.
> 
> The Vacuum full is at the end of a loading batch SQL file which makes lot of
> insert , deletes and updates.

If a dump and reload fixes your problem, most likely you have a lot of
dead tuples in the table. You might need to run vacuum more often.
You might have an open transaction that is preventing vacuum full
from cleaning up the table.



view thread (2+ messages)  latest in thread

Message-ID: <20031119154959.GA18327@wolff.to>
Permalink:  ../20031119154959.GA18327@wolff.to/
Also on:    postgresql.org/message-id/20031119154959.GA18327@wolff.to

 · 

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: bruno@wolff.to, mallah@trade-india.com
  Subject: Re: problem with select count(*) ..
  In-Reply-To: <20031119154959.GA18327@wolff.to>

* 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