From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pailloncy Jean-Gerard <jg@rilk.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: 8.1 count(*) distinct: IndexScan/SeqScan
Date: Wed, 23 Nov 2005 22:14:56 -0500
Message-ID: <7006.1132802096@sss.pgh.pa.us> (raw)
In-Reply-To: <334D9941-B5B3-4D18-8312-F85D0FB054ED@rilk.com>
References: <334D9941-B5B3-4D18-8312-F85D0FB054ED@rilk.com>
Pailloncy Jean-Gerard <jg@rilk.com> writes:
> Why the stupid indexscan plan on the whole table ?
Pray tell, what are you using for the planner cost parameters?
The only way I can come close to duplicating your numbers is
by setting random_page_cost to somewhere around 0.01 ...
regards, tom lane
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: tgl@sss.pgh.pa.us, jg@rilk.com
Subject: Re: 8.1 count(*) distinct: IndexScan/SeqScan
In-Reply-To: <7006.1132802096@sss.pgh.pa.us>
* 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