Re: 8.1 count(*) distinct: IndexScan/SeqScan

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pailloncy Jean-Gerard <jg(at)rilk(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: 8.1 count(*) distinct: IndexScan/SeqScan
Date: 2005-11-24 03:14:56
Message-ID: 7006.1132802096@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Pailloncy Jean-Gerard <jg(at)rilk(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message andrew 2005-11-24 05:20:19 Re: 8.1 count(*) distinct: IndexScan/SeqScan
Previous Message Luke Lonergan 2005-11-24 02:29:49 Re: Hardware/OS recommendations for large databases (