RE: Using Array-Values in subselect

Поиск
Список
Период
Сортировка
От Edmar Wiggers
Тема RE: Using Array-Values in subselect
Дата
Msg-id NEBBIAKDCDHFGJMLHCKIGEDFCBAA.edmar@brasmap.com
обсуждение исходный текст
Ответ на Using Array-Values in subselect  (Alvar Freude <alvar.freude@merz-akademie.de>)
Список pgsql-sql
IMHO you should use another table instead of an array.

Forget about reasonable speed when using IN sub-queries, you'll get a
sequential scan of the sub-query for every row in the master select. I've
heard the EXISTS operator provides far better performance.

In 7.1, there's a very nice solution: use the sub-query in the FROM clause
and make joins to it. Should be MUCH faster.

> But this causes an error because the array field just returns a string
> instead of seperated values. Is there a way to make arrays return sort
> of "real arrays" or something usable in a subselect in reasonable speed?



В списке pgsql-sql по дате отправления:

Предыдущее
От: Roberto Mello
Дата:
Сообщение: Re: Using Array-Values in subselect
Следующее
От: Alvar Freude
Дата:
Сообщение: Re: Using Array-Values in subselect