subqueries

Поиск
Список
Период
Сортировка
От Tomasz Grobelny
Тема subqueries
Дата
Msg-id 200506200012.40736.tomasz@grobelny.oswiecenia.net
обсуждение исходный текст
Ответы Re: subqueries
Re: subqueries
Список pgsql-general
I have such a statement:
select * from (subquery1) as foo, (subquery2) as bar;
Both subqueries are reasonably fast (<0.5s) and generate results that have
several (<10) rows but the whole query takes forever to execute. Moreover if
I simplify those subqueries (limiting functionality) the whole select clause
works just fine. It seems that those subqueries are not executed separately.
What am I doing wrong?

Tomek

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

Предыдущее
От: Zlatko Matić
Дата:
Сообщение: user/groups query ?
Следующее
От: "Sean Davis"
Дата:
Сообщение: Re: subqueries