postgresql/src/backend/postmaster
Tom Lane d038966ddb Fix syslogger to not fail when log_rotation_age exceeds 2^31 milliseconds.
We need to avoid calling WaitLatch with timeouts exceeding INT_MAX.
Fortunately a simple clamp will do the trick, since no harm is done if
the wait times out before it's really time to rotate the log file.
Per bug #7670 (probably bug #7545 is the same thing, too).

In passing, fix bogus definition of log_rotation_age's maximum value in
guc.c --- it was numerically right, but only because MINS_PER_HOUR and
SECS_PER_MINUTE have the same value.

Back-patch to 9.2.  Before that, syslogger wasn't using WaitLatch.
2012-11-18 16:16:39 -05:00
..
autovacuum.c Remove unnecessary "head" arguments from some dlist/slist functions. 2012-10-18 19:04:20 -04:00
bgwriter.c Close un-owned SMgrRelations at transaction end. 2012-10-17 12:38:21 -04:00
checkpointer.c Close un-owned SMgrRelations at transaction end. 2012-10-17 12:38:21 -04:00
fork_process.c Support Linux's oom_score_adj API as well as the older oom_adj API. 2012-06-13 15:35:52 -04:00
Makefile Refactor xlog.c to create src/backend/postmaster/startup.c 2011-11-02 14:25:01 +00:00
pgarch.c Split up process latch initialization for more-fail-soft behavior. 2012-10-14 22:59:56 -04:00
pgstat.c Split up process latch initialization for more-fail-soft behavior. 2012-10-14 22:59:56 -04:00
postmaster.c Remove unnecessary "head" arguments from some dlist/slist functions. 2012-10-18 19:04:20 -04:00
startup.c Introduce timeout handling framework 2012-07-16 22:55:33 -04:00
syslogger.c Fix syslogger to not fail when log_rotation_age exceeds 2^31 milliseconds. 2012-11-18 16:16:39 -05:00
walwriter.c Close un-owned SMgrRelations at transaction end. 2012-10-17 12:38:21 -04:00