pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron Mayer <rm_pg@cheapcomplexdevices.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-performance@postgresql.org, Ron Mayer <rm_pg@cheapcomplexdevices.com>
Subject: Re: What about utility to calculate planner cost constants?
Date: Tue, 22 Mar 2005 14:59:44 -0800
Message-ID: <4240A360.1030904@cheapcomplexdevices.com> (raw)
In-Reply-To: <14922.1111528095@sss.pgh.pa.us>
References: <A66A11DBF5525341AEF6B8DE39CDE77008805C@black.aprote.com>
	<200503210951.06044.josh@agliodbs.com>
	<87acowcmut.fsf@stark.xeocode.com>
	<m34qf3aktn.fsf@knuth.knuth.cbbrowne.com>
	<10759.1111516477@sss.pgh.pa.us>
	<87is3j9xql.fsf@stark.xeocode.com>
	<14922.1111528095@sss.pgh.pa.us>

Tom Lane wrote:
> 
> And you can't just dismiss the issue of wrong cost models and say we can
> get numbers anyway.

Is there a way to see more details about the cost estimates.
EXPLAIN ANALYZE seems to show the total time and rows; but not
information like how many disk pages were accessed.

I get the feeling that sometimes the number of rows is estimated
very well, but the amount of disk I/O is way off.

Sometimes the number of pages read/written is grossly
overestimated (if tables lave a lot of locally clustered data)
or underestimated if a sort barely exceeds sort_mem.


Perhaps an EXPLAN ANALYZE VERBOSE that would add info like this:

    Index scan ([...]estimated 1000 pages read)  (actual[...] 10 pages read)

would help track those down?




view thread (21+ messages)  latest in thread

Message-ID: <4240A360.1030904@cheapcomplexdevices.com>
Permalink:  ../4240A360.1030904@cheapcomplexdevices.com/
Also on:    postgresql.org/message-id/4240A360.1030904@cheapcomplexdevices.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: rm_pg@cheapcomplexdevices.com, tgl@sss.pgh.pa.us
  Subject: Re: What about utility to calculate planner cost constants?
  In-Reply-To: <4240A360.1030904@cheapcomplexdevices.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