Re: Bitmap Heap scan 8.1/8.2 - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Bitmap Heap scan 8.1/8.2
Date
Msg-id 20071023125456.GC5772@alvh.no-ip.org
Whole thread Raw
In response to Re: Bitmap Heap scan 8.1/8.2  (Martin Marques <martin@bugs.unl.edu.ar>)
Responses Re: Bitmap Heap scan 8.1/8.2
Re: Bitmap Heap scan 8.1/8.2
List pgsql-general
Martin Marques escribió:
> Martin Marques escribió:
>> Pavel Stehule wrote:
>>>
>>> try
>>>
>>> set work_mem to '8MB';
>>> and
>>> explain analyze select ..
>> These things didn't help. What changed the plan completely was this:
>> seq_page_cost = 5.0                     # measured on an arbitrary scale
>> cpu_tuple_cost = 0.05                   # same scale as above
>
> Can someone explain how this parameters are measured? What is 5.0 in this
> case for seq_page_cost?

It's an arbitrary number, based on which all the other numbers are
measured.

What people generally do around here is mess with random_page_cost, and
leave seq_page_cost alone.  Often, it's the ratio
seq_page_cost/random_page_cost what's most important to the cost
equations results.  (seq_page_cost wasn't tunable at all until
recently, say 8.1 or 8.2 AFAIR).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: Ow Mun Heng
Date:
Subject: Determine query run-time from pg_* tables
Next
From: Alvaro Herrera
Date:
Subject: Re: Determine query run-time from pg_* tables