Re: select count(*) performance (vacuum did not help) - Mailing list pgsql-performance

From Heikki Linnakangas
Subject Re: select count(*) performance (vacuum did not help)
Date
Msg-id 46F7D2C7.70105@enterprisedb.com
Whole thread Raw
In response to Re: select count(*) performance (vacuum did not help)  (Gábor Farkas <gabor@nekomancer.net>)
Responses Re: select count(*) performance (vacuum did not help)
List 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

pgsql-performance by date:

Previous
From: Gábor Farkas
Date:
Subject: Re: select count(*) performance (vacuum did not help)
Next
From: Gábor Farkas
Date:
Subject: Re: select count(*) performance (vacuum did not help)