Re: BUG #7670: BUG #7545: Unresponsive server with error log reporting: "poll() failed: Invalid argument"

Поиск
Список
Период
Сортировка
От Igor
Тема Re: BUG #7670: BUG #7545: Unresponsive server with error log reporting: "poll() failed: Invalid argument"
Дата
Msg-id CALdM5ephLEcp8xoViVvc13AWU8RhHYVGqRP2pd6Upok4eyEwkA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #7670: BUG #7545: Unresponsive server with error log reporting: "poll() failed: Invalid argument"  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
2012/11/18 Tom Lane <tgl@sss.pgh.pa.us>

> Igor <igorya.inscriptio@gmail.com> writes:
> > 2012/11/18 Tom Lane <tgl@sss.pgh.pa.us>
> >> I was just about to ask what you have log_rotation_age set to ...
>
> > Was:
> > log_rotation_age = 30d
>
> That's the problem then.  Internally that gets converted to
> milliseconds, which'll overflow at 24-something days.  Use a smaller
> value.
>
> So the actual bug here is an over-optimistic maximum value for
> log_rotation_age in guc.c.  After looking through all the callers of
> WaitLatch, I think the only other similar issue is for
> wal_sender_timeout, which currently is allowed to range up to INT_MAX;
> but such values seem pretty useless.
>
> I'm inclined to propose limiting both of these to the equivalent of 15
> days.


# Set this options to:
logging_collector = on
log_rotation_age = 15d
log_rotation_size = 100MB # was early

And will watch..

--
Regards
System and web developer.
<http://amkmobile.com>

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

Предыдущее
От: Igor
Дата:
Сообщение: Re: BUG #7670: BUG #7545: Unresponsive server with error log reporting: "poll() failed: Invalid argument"
Следующее
От: Andres Freund
Дата:
Сообщение: Re: BUG #7670: BUG #7545: Unresponsive server with error log reporting: "poll() failed: Invalid argument"