From: Mladen Gogala <mladen.gogala@vmsinfo.com>
To: pgsql-performance@postgresql.org
Subject: Re: Select count(*), the sequel
Date: Mon, 18 Oct 2010 07:41:41 -0400
Message-ID: <4CBC3275.9020000@vmsinfo.com> (raw)
In-Reply-To: <4CBBFE2F.3010801@gmail.com>
References: <4CB9D82F.9040505@gmail.com>
<4CBBFE2F.3010801@gmail.com>
On 10/18/2010 3:58 AM, Vitalii Tymchyshyn wrote:
> Hello.
>
> Did you vacuum postgresql DB before the count(*). I ask this because
> (unless table was created& loaded in same transaction) on the first
> scan, postgresql has to write hint bits to the whole table. Second scan
> may be way faster.
>
> Best regards, Vitalii Tymchyshyn
Vitalli, yes I did vacuum before the count.
--
Mladen Gogala
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251
www.vmsinfo.com
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: mladen.gogala@vmsinfo.com
Subject: Re: Select count(*), the sequel
In-Reply-To: <4CBC3275.9020000@vmsinfo.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