Обсуждение: IN clause performance

Поиск
Список
Период
Сортировка

IN clause performance

От
"Pg Coder"
Дата:
Basic query optimization question- does Postgres process
 
   x IN (y1, y2) 
as fast as
   (x = y1 OR x = y2)
 
in a function?

IN clause performance

От
"Paul Codler"
Дата:
Basic query optimization question- does Postgres process
 
   x IN (y1, y2) 
as fast as
   (x = y1 OR x = y2)
 
in a function?

Re: IN clause performance

От
Peter Wiersig
Дата:
On Thu, Jul 19, 2007 at 05:52:30AM -0700, Paul Codler wrote:
>  Basic query optimization question- does Postgres process
>
>    x IN (y1, y2)
>  as fast as
>    (x = y1 OR x = y2)
>
>  in a function?

EXPLAIN indicates this.

Peter