Re: [HACKERS] having bug report

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] having bug report
Дата
Msg-id 18826.943928122@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] having bug report  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Any comments on that status of this one?

Those particular cases are fixed, I think, but there are still severe
problems with VIEWs that use grouping or aggregates.  I doubt we can
improve the VIEW situation much more without subselects-in-FROM.
        regards, tom lane


>> * subqueries containing HAVING return incorrect results
>> 
>> select istat from comuni where istat in (
>> select istat from comuni group by istat having count(istat) > 1
>> );
>> ERROR:  rewrite: aggregate column of view must be at rigth side in qual
>> 
>> select istat from comuni where istat in (
>> select istat from comuni group by istat having 1 < count(istat)
>> );
>> ERROR:  pull_var_clause: Cannot handle node type 108


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Re: [HACKERS] new patches
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PORTS] Re: [HACKERS] RedHat6.0 & Alpha