Using IN with subselect

Поиск
Список
Период
Сортировка
От Dave Smith
Тема Using IN with subselect
Дата
Msg-id 1101401346.7960.36.camel@playpen.candata.com
обсуждение исходный текст
Ответы Re: Using IN with subselect  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
I have a query with an in subquery like

where x in (select x from y);

Now the subquery is not related to the outer query so it always returns
the same set. Is this subselect executed each time or just once? If it
is executed each time, if I create a function would that then be only
executed once?

--
Dave Smith
CANdata Systems Ltd
416-493-9020


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: VACUUM ANALYZE question - PostgreSQL performance tests
Следующее
От: Greg Stark
Дата:
Сообщение: Re: why use SCHEMA? any real-world examples?