pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Samuel Gendler <sgendler@ideasculptor.com>
To: pgsql-performance@postgresql.org
Subject: Re: poor performance when recreating constraints on large tables
Date: Wed, 08 Jun 2011 14:53:32 -0500
Message-ID: <4DEF8CEC020000250003E38D@gw.wicourts.gov> (raw)
In-Reply-To: <BANLkTikpLO0Tz07LGK2G5cVXrG0DA1xCMA@mail.gmail.com>
References: <BANLkTimAhAjMY3qZjxOFENugM+dcy6LmEA@mail.gmail.com>
	<12692.1307392671@sss.pgh.pa.us>
	<BANLkTinBY9j=v_0Oc5-rVuKcaEuj9f4tYQ@mail.gmail.com>
	<BANLkTi=zFRZb5AKXakVxvZqO=QWWCEGKZw@mail.gmail.com>
	<BANLkTikpLO0Tz07LGK2G5cVXrG0DA1xCMA@mail.gmail.com>

Samuel Gendler <sgendler@ideasculptor.com> wrote:
 
> The planner knows how many rows are expected for each step of the
> query plan, so it would be theoretically possible to compute how
> far along it is in processing a query based on those estimates,
> wouldn't it?
 
And it is sometimes off by orders of magnitude.  How much remaining
time do you report when the number of rows actually processed so far
is five times the estimated rows that the step would process?  How
about after it chugs on from there to 20 time she estimated row
count?  Of course, on your next query it might finish after
processing only 5% of the estimated rows....
 
-Kevin



view thread (10+ messages)  latest in thread

Message-ID: <4DEF8CEC020000250003E38D@gw.wicourts.gov>
Permalink:  ../4DEF8CEC020000250003E38D@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4DEF8CEC020000250003E38D@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, sgendler@ideasculptor.com
  Subject: Re: poor performance when recreating constraints on large tables
  In-Reply-To: <4DEF8CEC020000250003E38D@gw.wicourts.gov>
  References: <BANLkTimAhAjMY3qZjxOFENugM+dcy6LmEA@mail.gmail.com> <12692.1307392671@sss.pgh.pa.us> <BANLkTinBY9j=v_0Oc5-rVuKcaEuj9f4tYQ@mail.gmail.com> <BANLkTi=zFRZb5AKXakVxvZqO=QWWCEGKZw@mail.gmail.com> <BANLkTikpLO0Tz07LGK2G5cVXrG0DA1xCMA@mail.gmail.com> <4DEF8CEC020000250003E38D@gw.wicourts.gov>

* 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