Re: BUG #5755: Query Optimzer Bug - Mailing list pgsql-bugs

From Heikki Linnakangas
Subject Re: BUG #5755: Query Optimzer Bug
Date
Msg-id 4CE420F6.7070003@enterprisedb.com
Whole thread Raw
In response to Re: BUG #5755: Query Optimzer Bug  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On 17.11.2010 18:05, Tom Lane wrote:
> "Elliott Groszek"<elliott.groszek@navy.mil>  writes:
>> The following SQL statements produce different query plans even though
>> "phone" is not reference in the SQL!
>
>> explain update customer set login_name =
>> (select "NESSOuserName" from person,phone
>> where person.cac_cert=customer.cac_cert);
>
>> explain update customer set login_name =
>> (select "NESSOuserName" from person
>> where person.cac_cert=customer.cac_cert);
>
> That's not a bug.

Particularly, note that they produce different results if "phone" table
is empty.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #5755: Query Optimzer Bug
Next
From: Robert Haas
Date:
Subject: Re: BUG #5753: Existing Functions No Longer Work