Re: Wrong aggregate result when sorting by a NULL value

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Wrong aggregate result when sorting by a NULL value
Дата
Msg-id 25772.1541376947@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 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 18:49:40 -0500, Tom Lane wrote:
>> Meh.  I'm unexcited about getting rid of one type of compiler warning by
>> introducing another one.

> It's impracticable to enable dead code warnings in postgres
> anyway. There's way way too many of them (all the returns after
> elog(ERROR) etc are enough to make it infeasible to change that).

I think you have a very limited conception of what sorts of warnings
code like that would trigger.  In particular, even given the
unsubstantiated assumption that nobody's compiler would complain,
I think static analyzers like Coverity might.

            regards, tom lane


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Wrong aggregate result when sorting by a NULL value
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #15437: Segfault during insert into declarative partitionedtable with a trigger creating partition