Re: Regression in IN( field, field, field ) performance - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Regression in IN( field, field, field ) performance
Date
Msg-id 27464.1224608765@sss.pgh.pa.us
Whole thread Raw
In response to Regression in IN( field, field, field ) performance  (Jim 'Decibel!' Nasby <jnasby@cashnetusa.com>)
Responses Re: Regression in IN( field, field, field ) performance
List pgsql-hackers
"Jim 'Decibel!' Nasby" <jnasby@cashnetusa.com> writes:
>        WHERE '12814474045' IN (people.home_phone, people.work_phone,  
> people.mobile_phone)

> Yeah, not exactly a common case, but at least in 8.1 this was turned  
> into a set of ORs. Starting in 8.2 and in current HEAD, the planner  
> turns that into:

> Filter: ('12814474045'::text = ANY ((ARRAY[home_phone, mobile_phone,  
> work_phone])::text[]))

> Which means automatic seqscan.

It means no such thing.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: SQL 200N -> SQL:2003
Next
From: "Gevik Babakhani"
Date:
Subject: Buildfarm Cardinal going down.