Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: determining random_page_cost value


  • From: "Jim C. Nasby" <jnasby(at)pervasive(dot)com>
  • To: Yohanes Santoso <pgsql-hackers(at)microjet(dot)ath(dot)cx>
  • Cc: pgsql-hackers(at)postgresql(dot)org
  • Subject: Re: determining random_page_cost value
  • Date: Wed, 26 Oct 2005 16:56:11 -0500
  • Message-id: <20051026215611(dot)GJ16682(at)pervasive(dot)com>

On Tue, Oct 25, 2005 at 04:37:34PM -0400, Yohanes Santoso wrote:
> > All of this goes to uphold Tom's general assertion that the default of 4 is 
> > more or less correct 
> 
> Doesn't this show that 4:1 is a pretty optimistic value considering
> that no long-running db files are fragmentation-free?
> 
> >but the calculation in which we're using that number is 
> > not.
> 
> The calculation inside the planner, IOW, how the planner uses the RPC
> value?

The problem with RPC is that the estimator functions are sub-optimal in
many cases and tend to favor seqscan when they shouldn't. This is why
many people run with RPC set unrealistically low, such as 2.

IMHO until the estimator algorithms improve worrying about RPC is
pointless.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby(at)pervasive(dot)com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group