Re: BUG #3384: Subselects on joins show columns not in the join query.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #3384: Subselects on joins show columns not in the join query.
Дата
Msg-id 14943.1181758700@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #3384: Subselects on joins show columns not in the join query.  ("Adam Buchbinder" <adam@support.uroweb.net>)
Список pgsql-bugs
"Adam Buchbinder" <adam@support.uroweb.net> writes:
> Run these queries:

> SELECT otherfield FROM joinview WHERE fname='Quux';

> SELECT otherfield FROM firsttab WHERE otherfield IN (SELECT otherfield FROM
> joinview WHERE fname='Quux');

> SELECT otherfield FROM firsttab WHERE otherfield IN (SELECT otherfield FROM
> joinview WHERE fname='Bar');

> The first query returns an error, but the other two do not;

This is not a bug, it's a standard outer-reference construction.  See
any SQL book for details.

            regards, tom lane

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

Предыдущее
От: "Adam Buchbinder"
Дата:
Сообщение: BUG #3384: Subselects on joins show columns not in the join query.
Следующее
От: "Prasad"
Дата:
Сообщение: BUG #3385: Memory leak