Re: Any disadvantages of using =ANY(ARRAY()) instead of IN?
- To: pgsql-performance@xxxxxxxxxxxxxx
- Subject: Re: Any disadvantages of using =ANY(ARRAY()) instead of IN?
- From: Clemens Eisserer <linuxhippy@xxxxxxxxx>
- Date: Fri, 4 May 2012 15:19:06 +0200
- In-reply-to: <CAFvQSYSAcrEcJS9YYuvZtiN_8DjOt3G5YOu=YZ8ksDiFdLzZuA@mail.gmail.com>
- References: <CAFvQSYTNtqmd5F9ZWbmxGwm2A4UGoanSuD3p=0f+yzFwpKcq6g@mail.gmail.com> <13236.1335883438@sss.pgh.pa.us> <CAFvQSYSAcrEcJS9YYuvZtiN_8DjOt3G5YOu=YZ8ksDiFdLzZuA@mail.gmail.com>
Hi again,
>> That doesn't sound like a tremendously good idea to me.
> Could you elaborate on the downsides of this approach a bit?
Any other thoughts about the pro/cons replacing IN(subquery) with
=ANY(ARRAY(subquery))?
Are there patological cases, except when the subquery returns a huge
amount of rows?
Should Ifile a bug-report about the optimizer trying too hard to
collapse the subquery and therefor generating a bad plan?
Thank you in advance, Clemens
--
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
[Postgresql General]
[Postgresql PHP]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[PHP Books]
[PHP Databases]
[Home]
[Yosemite]