Re: poor performance when recreating constraints on large tables

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Samuel Gendler" <sgendler(at)ideasculptor(dot)com>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: poor performance when recreating constraints on large tables
Date: 2011-06-08 19:53:32
Message-ID: 4DEF8CEC020000250003E38D@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Samuel Gendler <sgendler(at)ideasculptor(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tony Capobianco 2011-06-08 19:55:17 Re: Oracle v. Postgres 9.0 query performance
Previous Message Samuel Gendler 2011-06-08 19:45:33 Re: poor performance when recreating constraints on large tables