Re: sequence scan on PK

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeroen van Iddekinge <iddekingej(at)lycos(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: sequence scan on PK
Date: 2005-05-08 16:49:19
Message-ID: 12303.1115570959@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Jeroen van Iddekinge <iddekingej(at)lycos(dot)com> writes:
>> You could tweak with several settings to get it to do an index scan
>> earlier, but these would probably break other queries. You don't need to
>> tune for 100 rows, morelike 100k or 100M.

> Which settings shoud I change for this?

I'd agree with John's response: if you change any settings based on just
this one test case, you're a fool. But usually random_page_cost is the
best knob to twiddle if you wish to encourage indexscans.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Matteo Beccati 2005-05-08 17:05:11 Re: sequence scan on PK
Previous Message John A Meinel 2005-05-08 16:24:36 Re: sequence scan on PK