From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Kovacs Zoltan <kovacsz(at)pc10(dot)radnoti-szeged(dot)sulinet(dot)hu> |
Cc: | pgsql-hackers(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: wrong query plan in 7.1beta3 |
Date: | 2001-01-27 16:20:52 |
Message-ID: | 21888.980612452@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-sql |
Kovacs Zoltan <kovacsz(at)pc10(dot)radnoti-szeged(dot)sulinet(dot)hu> writes:
> There seems to be an optimizer problem in 7.1beta3. The query you can see
> below worked fast in 7.0.2 but in 7.1beta3 is rather slow. The problem is
> that an 'index scan' has been changed to a 'seq scan'. Details:
This is fixed in current sources: I get
Subquery Scan sd_user_grant (cost=5.16..5.22 rows=1 width=61)
-> Aggregate (cost=5.16..5.22 rows=1 width=61)
-> Group (cost=5.16..5.18 rows=3 width=61)
-> Sort (cost=5.16..5.16 rows=3 width=61)
-> Nested Loop (cost=0.00..5.14 rows=3 width=61)
-> Seq Scan on pg_shadow (cost=0.00..1.01 rows=1 width=32)
-> Index Scan using sd_grant_pkey on sd_grant (cost=0.00..4.07 rows=3 width=29)
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Max Rudensky | 2001-01-27 17:16:03 | Re: Re: [GENERAL] MySQL -> Postgres dump converter |
Previous Message | Tom Lane | 2001-01-27 16:15:39 | Re: Ungraceful handling of fatal flex errors |
From | Date | Subject | |
---|---|---|---|
Next Message | Nagy Tamas | 2001-01-27 19:15:42 | looping through results of a SELECT |
Previous Message | Kovacs Zoltan | 2001-01-27 15:44:35 | Re: wrong query plan in 7.1beta3 |