Re: poor performance when recreating constraints on large tables - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: poor performance when recreating constraints on large tables
Date
Msg-id 4DEF8CEC020000250003E38D@gw.wicourts.gov
Whole thread Raw
In response to Re: poor performance when recreating constraints on large tables  (Samuel Gendler <sgendler@ideasculptor.com>)
Responses Re: poor performance when recreating constraints on large tables
List pgsql-performance
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

pgsql-performance by date:

Previous
From: Samuel Gendler
Date:
Subject: Re: poor performance when recreating constraints on large tables
Next
From: Tony Capobianco
Date:
Subject: Re: Oracle v. Postgres 9.0 query performance