Re: Problem with subquery joined to a view

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with subquery joined to a view
Дата
Msg-id 2357.974830609@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem with subquery joined to a view  (Kyle <kyle@actarg.com>)
Список pgsql-sql
Kyle <kyle@actarg.com> writes:
> The fourth "select" uses a regular subquery.  It gives the error:
> psql:datbug.sql:44: ERROR:  Sub-SELECT uses un-GROUPed attribute
> pay_req.wdate from outer query

This appears to work correctly in current sources.  In 7.0.* and before
grouped views do not work very well, because the rewriter effectively
expands them in-line, thus converting your outer query into a grouped
query (or making it not work at all, if it was already grouped :-().

See related bug report just a few minutes ago on pgsql-bugs.
        regards, tom lane


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

Предыдущее
От: Kyle
Дата:
Сообщение: Problem with subquery joined to a view
Следующее
От: Ricardo Dias Marques
Дата:
Сообщение: CREATE OR REPLACE VIEW