| От | Tom Lane |
|---|---|
| Тема | Re: log_rotation_age integer overflow display quirk |
| Дата | |
| Msg-id | 14536.1215373802@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: log_rotation_age integer overflow display quirk (Bernd Helmle <mailings@oopsware.de>) |
| Список | pgsql-hackers |
Bernd Helmle <mailings@oopsware.de> writes:
> --On Freitag, Juli 04, 2008 11:31:07 +0200 Stefan Kaltenbrunner
> <stefan@kaltenbrunner.cc> wrote:
>> I just noticed that setting log_rotation_age to a value larger than 24
>> days results in rather weird output (I have not actually tested yet if
>> that affects the functionality too or just the output):
> This seems to be a bug in _ShowOption(), where the corresponding value is
> converted into milliseconds to get the biggest possible time unit to
> display. This overflows the result variable (which is declared as int),
> causing this strange output.
Yup --- fixed by using int64 arithmetic for the units conversion.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера