Re: proposal: rounding up time value less than its unit.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: proposal: rounding up time value less than its unit.
Дата
Msg-id 2567.1408818170@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: proposal: rounding up time value less than its unit.  (Tomonari Katsumata <t.katsumata1122@gmail.com>)
Ответы Re: proposal: rounding up time value less than its unit.  (David G Johnston <david.g.johnston@gmail.com>)
Список pgsql-hackers
Tomonari Katsumata <t.katsumata1122@gmail.com> writes:
> This patch rounds up the value when only it's less than required unit.
> ..
> Although my original complaint is fixed, I'm worried about this change will
> make users confusing.

Indeed.  I have not understood why you are insisting on "round up"
semantics.  Wouldn't it make more sense for the behavior to be "round to
nearest"?  That would get rid of any worries about treating zero specially.

> Is it better to raise a message(ex. INFO) when a value less than required
> unit is set?

No.  Non-error messages are probably completely useless in this area:
users will typically never see such messages for settings made in
postgresql.conf, because it will not occur to them to look in the
postmaster log.  So the behavior needs to be self-explanatory without
any messages; and that means it had better not be very complicated.
        regards, tom lane



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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Parallel Sequence Scan doubts
Следующее
От: David G Johnston
Дата:
Сообщение: Re: proposal: rounding up time value less than its unit.