ATTN: Clodaldo was Performance problem. Could it be related to 8.3-beta4?

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "PostgreSQL - General ML" <pgsql-general(at)postgresql(dot)org>
Subject: ATTN: Clodaldo was Performance problem. Could it be related to 8.3-beta4?
Date: 2008-01-10 16:58:16
Message-ID: dcc563d10801100858h6ea2b4b8j4cab3f85ec83c176@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Jan 10, 2008 9:50 AM, Clodoaldo <clodoaldo(dot)pinto(dot)neto(at)gmail(dot)com> wrote:

> I have seen performance degradation at every new version since 7.3.
> But now 8.3 is a complete disaster. It could be that my most expensive
> query is just a corner case, but I don't believe it. I posted about it
> but the whole thread disappeared from the archives. It can still be
> found here:

OK, I was looking at the previous thread that you thought had
disappeared, and with the explain analyze output from 8.3 I noticed
something odd.

For 8.2 you had something like this:

QUERY PLAN
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Subquery Scan "*SELECT*" (cost=326089.49..350310.28 rows=880756
width=20) (actual time=11444.566..13114.365 rows=880691 loops=1)
-> HashAggregate (cost=326089.49..339300.83 rows=880756 width=12)
(actual time=11444.554..12438.188 rows=880691 loops=1)
... SNIP ...
Time: 357750.531 ms

And for 8.3 you had something like this:
QUERY PLAN
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Subquery Scan "*SELECT*" (cost=316145.48..340289.33 rows=877958
width=20) (actual time=10650.036..12997.377 rows=877895 loops=1)
-> HashAggregate (cost=316145.48..329314.85 rows=877958 width=12)
(actual time=10650.023..12193.890 rows=877895 loops=1)
... SNIP ...
Time: 9547801.116 ms

In both of those instances, the actual time used is WAY larger than
the time listed in the explain analyze, which has usually pointed to a
very expensive OS level get time of day call.

How fast do these two queries run if you just run them. i.e. do

\timing
select ....

???

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-01-10 17:02:38 Re: Installation problem: failed to initialize lc_messages to ""
Previous Message Sim Zacks 2008-01-10 16:53:53 Re: 8.2.4 serious slowdown