Re: [PATCH] More Coccinelli cleanups

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] More Coccinelli cleanups
Дата
Msg-id 20975.1288626962@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] More Coccinelli cleanups  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Oct 29, 2010 at 7:33 PM, Marti Raudsepp <marti@juffo.org> wrote:
>> patch 0001 turns (a - b == 0) into (a == b) and similarly with !=
>> patch 0002 applies the same to operators >, >=, <, <=
>> 
>> I'm well aware that there's a point where code cleanups defeat their
>> purpose and become a burden. So this will probably be my last one,
>> I'll go to doing productive things instead. :)

> I like the 0002 patch better than the 0001 patch.

I'm not really thrilled with either of them, as I don't think they are
doing much to improve readability.  As for 0002, as you say, at least
the change in bgwriter.c is actively breaking things.  I'm not eager to
go through and see which of the other changes there might be affecting
overflow or signed-vs-unsigned comparison behavior.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: why does plperl cache functions using just a bool for is_trigger
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: why does plperl cache functions using just a bool for is_trigger