Re: Wrong aggregate result when sorting by a NULL value

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Wrong aggregate result when sorting by a NULL value
Дата
Msg-id 24674.1541375380@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Wrong aggregate result when sorting by a NULL value  (Andres Freund <andres@anarazel.de>)
Ответы Re: Wrong aggregate result when sorting by a NULL value  (Andres Freund <andres@anarazel.de>)
Список pgsql-bugs
Andres Freund <andres@anarazel.de> writes:
> On 2018-11-04 11:19:59 -0500, Tom Lane wrote:
>> Used-for-asserts-only problem.  Will fix.

> Thanks.  I wonder if we shouldn't turn Asserts() into something roughly
> akin to if (0) {expr};. That way we'd not deal with errors about unused
> variables anymore - we're not safe against unreachable code warnings
> anyway.

Meh.  I'm unexcited about getting rid of one type of compiler warning by
introducing another one.

            regards, tom lane


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Wrong aggregate result when sorting by a NULL value
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Wrong aggregate result when sorting by a NULL value