Re: Improve perfomance for index search ANY(ARRAY[]) condition with single item

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dima Pavlov <imyfess(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Improve perfomance for index search ANY(ARRAY[]) condition with single item
Date: 2017-07-23 17:07:30
Message-ID: 12682.1500829650@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I wrote:
> Dima Pavlov <imyfess(at)gmail(dot)com> writes:
>> That's my first patch so I will be grateful for constructive criticism.

> I think it would be better to do this in the planner, see specifically
> eval_const_expressions.

BTW, currently eval_const_expressions doesn't know anything about
ScalarArrayOpExpr, but there's a patch pending to improve that:

https://commitfest.postgresql.org/14/1136/

You should probably build your revised patch as a follow-on to that
one, else we're going to have merge conflicts.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2017-07-23 19:03:09 Re: autovacuum can't keep up, bloat just continues to rise
Previous Message Tom Lane 2017-07-23 16:55:47 Re: Improve perfomance for index search ANY(ARRAY[]) condition with single item