postgresql/src/backend/utils
Tom Lane b6e3798f3a Limit values of archive_timeout, post_auth_delay, auth_delay.milliseconds.
The previous definitions of these GUC variables allowed them to range
up to INT_MAX, but in point of fact the underlying code would suffer
overflows or other errors with large values.  Reduce the maximum values
to something that won't misbehave.  There's no apparent value in working
harder than this, since very large delays aren't sensible for any of
these.  (Note: the risk with archive_timeout is that if we're late
checking the state, the timestamp difference it's being compared to
might overflow.  So we need some amount of slop; the choice of INT_MAX/2
is arbitrary.)

Per followup investigation of bug #7670.  Although this isn't a very
significant fix, might as well back-patch.
2012-11-18 17:15:06 -05:00
..
adt Fix the int8 and int2 cases of (minimum possible integer) % (-1). 2012-11-14 17:30:00 -05:00
cache Further cleanup of catcache.c ilist changes. 2012-10-18 19:30:43 -04:00
error Use correct text domain for translating errcontext() messages. 2012-11-12 17:07:29 +02:00
fmgr Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
hash Fix hash_search to avoid corruption of the hash table on out-of-memory. 2012-10-19 15:24:03 -04:00
init Parse pg_ident.conf when it's loaded, keeping it in memory in parsed format. 2012-09-21 17:54:39 +03:00
mb Remove configure flag --disable-shared, as it is no longer used by any 2012-08-30 16:26:53 -04:00
misc Limit values of archive_timeout, post_auth_delay, auth_delay.milliseconds. 2012-11-18 17:15:06 -05:00
mmgr Fix thinko in previous commit 2012-10-08 18:33:08 -03:00
resowner Split resowner.h 2012-08-28 18:02:07 -04:00
sort Add support for easily declaring static inline functions 2012-10-08 16:28:01 -03:00
time Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
.gitignore Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
errcodes.txt Code review for 64-bit-large-object patch. 2012-10-08 18:24:32 -04:00
Gen_dummy_probes.sed Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
Gen_fmgrtab.pl Run updated copyright.pl on HEAD and 9.2 trees, updating the psql 2012-07-06 12:28:18 -04:00
generate-errcodes.pl Run newly-configured perltidy script on Perl files. 2012-07-04 21:47:49 -04:00
Makefile Make handling of errcodes.h more consistent with other generated headers. 2011-02-04 09:29:10 -05:00
probes.d Make group commit more effective. 2012-01-30 16:53:48 +02:00