pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Terje Elde <terje@elde.net>
To: Jeff Davis <pgsql@j-davis.com>
Cc: Joshua Marsh <icub3d@gmail.com>
Cc: pgsql-performance@postgresql.org
Cc: jim@nasby.net
Subject: Re: Performance With Joins on Large Tables
Date: Wed, 13 Sep 2006 21:42:50 +0200
Message-ID: <45085F3A.1040108@elde.net> (raw)
In-Reply-To: <1158167054.29889.72.camel@dogma.v10.wvs>
References: <38242de90609121517y62517040v8622b9ae93cba23d@mail.gmail.com>
	<20060913064152.GC23173@nasby.net>
	<38242de90609130749u976295fwb10904ff4797b920@mail.gmail.com>
	<1158163655.29889.57.camel@dogma.v10.wvs>
	<38242de90609130919k33208204ka1006ff0ca25f75b@mail.gmail.com>
	<1158167054.29889.72.camel@dogma.v10.wvs>

Jeff Davis wrote:
> Is it overestimating the cost of using indexes or underestimating the
> cost of a seq scan, or both? Maybe explain with the 0.1 setting will
> help?
>   

If enable_seqscan is off, and cost is still set to 100000000, it could 
be that it's quite simply forcibly underestimating the cost of a seqscan 
in this case.

If enable_secscan was off for the mentioned plan, it'd be interesting to 
see if things would be saner with seqscans enabled, and a more 
reasonable random page cost.  If more 'sane' values still produce the 
desired plan, it might be better for other plans etc.

Terje




view thread (16+ messages)  latest in thread

Message-ID: <45085F3A.1040108@elde.net>
Permalink:  ../45085F3A.1040108@elde.net/
Also on:    postgresql.org/message-id/45085F3A.1040108@elde.net

 · 

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: terje@elde.net, pgsql@j-davis.com, icub3d@gmail.com, jim@nasby.net
  Subject: Re: Performance With Joins on Large Tables
  In-Reply-To: <45085F3A.1040108@elde.net>

* 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