pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bryan Murphy <bmurphy1976@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Help Me Understand Why I'm Getting a Bad Query Plan
Date: Wed, 25 Mar 2009 23:00:25 -0500
Message-ID: <7fd310d10903252100n3ba13c9fuf4818a66cf7afb10@mail.gmail.com> (raw)
In-Reply-To: <12624.1238038097@sss.pgh.pa.us>
References: <7fd310d10903231203r1bd37b8cn8baeadae83253f44@mail.gmail.com>
	<7fd310d10903241521v1cbf5d7aueca653e03ed98649@mail.gmail.com>
	<b1b9fac60903242004p5fe8b68fwd6f1ada767766b21@mail.gmail.com>
	<7fd310d10903242047t1a7b7daw1d61c3de7f20b7c6@mail.gmail.com>
	<49CAA85C.8080402@agliodbs.com>
	<7fd310d10903251514x1dd522f3o8d13a9218a6eda6c@mail.gmail.com>
	<11650.1238033714@sss.pgh.pa.us>
	<7fd310d10903252019p22352555lc346b7532edf075c@mail.gmail.com>
	<12624.1238038097@sss.pgh.pa.us>

On Wed, Mar 25, 2009 at 10:28 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Bryan Murphy <bmurphy1976@gmail.com> writes:
>> What I did was change seq_page_cost back to 1.0 and then changed
>> random_page_cost to 0.5
>
> [ squint... ]  It makes no physical sense for random_page_cost to be
> less than seq_page_cost.  Please set them the same.
>
>                        regards, tom lane

Done.  Just  saw the tip in the docs as well.  Both are set to 0.5 now
and I'm still getting the good query plan.

Thanks!
Bryan




view thread (14+ messages)

Message-ID: <7fd310d10903252100n3ba13c9fuf4818a66cf7afb10@mail.gmail.com>
Permalink:  ../7fd310d10903252100n3ba13c9fuf4818a66cf7afb10@mail.gmail.com/
Also on:    postgresql.org/message-id/7fd310d10903252100n3ba13c9fuf4818a66cf7afb10@mail.gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: bmurphy1976@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Help Me Understand Why I'm Getting a Bad Query Plan
  In-Reply-To: <7fd310d10903252100n3ba13c9fuf4818a66cf7afb10@mail.gmail.com>
  References: <7fd310d10903231203r1bd37b8cn8baeadae83253f44@mail.gmail.com> <7fd310d10903241521v1cbf5d7aueca653e03ed98649@mail.gmail.com> <b1b9fac60903242004p5fe8b68fwd6f1ada767766b21@mail.gmail.com> <7fd310d10903242047t1a7b7daw1d61c3de7f20b7c6@mail.gmail.com> <49CAA85C.8080402@agliodbs.com> <7fd310d10903251514x1dd522f3o8d13a9218a6eda6c@mail.gmail.com> <11650.1238033714@sss.pgh.pa.us> <7fd310d10903252019p22352555lc346b7532edf075c@mail.gmail.com> <12624.1238038097@sss.pgh.pa.us> <7fd310d10903252100n3ba13c9fuf4818a66cf7afb10@mail.gmail.com>

* 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