From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kovacs Zoltan <kovacsz@pc10.radnoti-szeged.sulinet.hu>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: wrong query plan in 7.1beta3
Date: Sat, 27 Jan 2001 11:20:52 -0500
Message-ID: <21888.980612452@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.21.0101271504300.15247-100000@pc10.radnoti-szeged.sulinet.hu>
References: <Pine.LNX.4.21.0101271504300.15247-100000@pc10.radnoti-szeged.sulinet.hu>
Kovacs Zoltan <kovacsz@pc10.radnoti-szeged.sulinet.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, kovacsz@pc10.radnoti-szeged.sulinet.hu, pgsql-hackers@postgresql.org
Subject: Re: wrong query plan in 7.1beta3
In-Reply-To: <21888.980612452@sss.pgh.pa.us>
References: <Pine.LNX.4.21.0101271504300.15247-100000@pc10.radnoti-szeged.sulinet.hu> <21888.980612452@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox