Re: random_page_cost = 1?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alex Stapleton <alexs(at)advfn(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: random_page_cost = 1?
Date: 2005-06-09 16:55:22
Message-ID: 14199.1118336122@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Alex Stapleton <alexs(at)advfn(dot)com> writes:
> Is this advisable?

Only if your database is small enough that you expect it to remain fully
cached in RAM. In that case random_page_cost = 1 does in fact describe
the performance you expect Postgres to see.

People occasionally use values for random_page_cost that are much
smaller than physical reality would suggest, but I think this is mainly
a workaround for deficiencies elsewhere in the planner cost models.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Matthew Nuzum 2005-06-09 17:18:15 Re: Help specifying new web server/database machine
Previous Message Rory Campbell-Lange 2005-06-09 16:44:20 Re: Help specifying new web server/database machine