Re: select count(*) performance (vacuum did not help)

From: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
To: Gábor Farkas <gabor(at)nekomancer(dot)net>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: select count(*) performance (vacuum did not help)
Date: 2007-09-24 15:07:51
Message-ID: 46F7D2C7.70105@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Gábor Farkas wrote:
> hmm... can a full-vacuum be performed while the database is still "live"
> (i mean serving requests)?
>
> will the db still be able to respond to queries?

VACUUM FULL will exclusive lock the table, which means that other
queries accessing it will block and wait until it's finished.

> or in a different way:
>
> if i do a full vacuum to that table only, will the database still serve
> data from the other tables at a normal speed?

Yes. The extra I/O load vacuum full generates while it's running might
disrupt other activity, though.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Gábor Farkas 2007-09-24 15:14:27 Re: select count(*) performance (vacuum did not help)
Previous Message Gábor Farkas 2007-09-24 15:04:39 Re: select count(*) performance (vacuum did not help)