Re: 7.3 vs 7.2 - different query plan, bad performance

From: Manfred Koizar <mkoi-pg(at)aon(dot)at>
To: Ryszard Lach <siaco(at)autograf(dot)pl>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: 7.3 vs 7.2 - different query plan, bad performance
Date: 2003-06-16 13:24:52
Message-ID: isgrevcc4r7h887q8hhe3crmiha8vrv9fu@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, 16 Jun 2003 13:41:47 +0200, Ryszard Lach <siaco(at)autograf(dot)pl>
wrote:
>On Mon, Jun 16, 2003 at 12:31:08PM +0200, Manfred Koizar wrote:
>> EXPLAIN ANALYSE SELECT * FROM v_c;

>siaco=# explain analyze select count(*) from v_c;
^^^^^^ ^
See the difference? I bet if you
EXPLAIN ANALYSE SELECT * FROM v_c;
you get a much longer runtime.

BTW, did the index on a.parent_id help? In my test it improved
runtime from 59449.71 msec to 1203.26 msec (SELECT * with Postgres
7.2).

Servus
Manfred

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2003-06-16 13:26:13 Re: left join performance problem
Previous Message Ryszard Lach 2003-06-16 11:41:47 Re: 7.3 vs 7.2 - different query plan, bad performance