pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nolan Cafferky <Nolan.Cafferky@rbsinteractive.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Cluster vs. non-cluster query planning
Date: Mon, 01 May 2006 19:35:02 -0400
Message-ID: <20934.1146526502@sss.pgh.pa.us> (raw)
In-Reply-To: <445678B1.9050908@rbsinteractive.com>
References: <445644F9.2020708@rbsinteractive.com>
	<44566612.8020709@rbsinteractive.com>
	<8044.1146515444@sss.pgh.pa.us>
	<445678B1.9050908@rbsinteractive.com>

Nolan Cafferky <Nolan.Cafferky@rbsinteractive.com> writes:
> But, I'm guessing that random_page_cost = 1 is not a realistic value.

Well, that depends.  If all your data can be expected to fit in memory
then it is a realistic value.  (If not, you should be real careful not
to make performance decisions on the basis of test cases that *do* fit
in RAM...)

In any case, if I recall your numbers correctly you shouldn't need to
drop it nearly that far to get the thing to make the right choice.
A lot of people run with random_page_cost set to 2 or so.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <20934.1146526502@sss.pgh.pa.us>
Permalink:  ../20934.1146526502@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20934.1146526502@sss.pgh.pa.us

 · 

reply

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, Nolan.Cafferky@rbsinteractive.com
  Subject: Re: Cluster vs. non-cluster query planning
  In-Reply-To: <20934.1146526502@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