diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-11-18 16:16:47 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-11-18 16:16:47 -0500 |
commit | 89067bc16a1d1ea5bf131b3529e01d208f2e34c0 (patch) | |
tree | 66b9410a66c387ba5dc740b99534362e46c3f9fe /src/backend/regex/regexec.c | |
parent | f0461cd8613830aa2448a38b09569e8c54cead5b (diff) | |
download | postgresql-89067bc16a1d1ea5bf131b3529e01d208f2e34c0.tar.gz postgresql-89067bc16a1d1ea5bf131b3529e01d208f2e34c0.zip |
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.
Diffstat (limited to 'src/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions