pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joel Fradkin <jfradkin@wazagua.com>
Cc: 'PostgreSQL Perform' <pgsql-performance@postgresql.org>
Subject: Re: Any way to speed this up?
Date: Thu, 07 Apr 2005 12:42:48 -0400
Message-ID: <11372.1112892168@sss.pgh.pa.us> (raw)
In-Reply-To: <006701c53b8f$9274fdf0$797ba8c0@jfradkin>
References: <006701c53b8f$9274fdf0$797ba8c0@jfradkin>

"Joel Fradkin" <jfradkin@wazagua.com> writes:
> random_page_cost = 1.2#4		# units are one sequential page
> fetch cost

That is almost certainly overoptimistic; it's causing the planner to
use indexscans when it shouldn't.  Try 2 or 3 or thereabouts.

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <11372.1112892168@sss.pgh.pa.us>
Permalink:  ../11372.1112892168@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11372.1112892168@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, jfradkin@wazagua.com
  Subject: Re: Any way to speed this up?
  In-Reply-To: <11372.1112892168@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