postgresql/src
Tom Lane 14ddff44c2 Assert that WaitLatch's timeout is not more than INT_MAX milliseconds.
The behavior with larger values is unspecified by the Single Unix Spec.
It appears that BSD-derived kernels report EINVAL, although Linux does not.
If waiting for longer intervals is desired, the calling code has to do
something to limit the delay; we can't portably fix it here since "long"
may not be any wider than "int" in the first place.

Part of response to bug #7670, though this change doesn't fix that
(in fact, it converts the problem from an ERROR into an Assert failure).
No back-patch since it's just an assertion addition.
2012-11-18 15:39:51 -05:00
..
backend Assert that WaitLatch's timeout is not more than INT_MAX milliseconds. 2012-11-18 15:39:51 -05:00
bin Teach pg_basebackup and pg_receivexlog to reply to server keepalives. 2012-11-08 10:28:52 +02:00
include Fix multiple problems in WAL replay. 2012-11-12 22:05:53 -05:00
interfaces In our source code, make a copy of getopt's 'optarg' string arguments, 2012-10-12 13:35:43 -04:00
makefiles Fix PGXS support for building loadable modules on AIX. 2012-10-09 21:04:06 -04:00
pl Refactor flex and bison make rules 2012-10-11 06:57:04 -04:00
port Remove redundant code for getnameinfo() replacement 2012-10-04 21:45:14 -04:00
template Remove _FORTIFY_SOURCE 2012-10-10 21:42:38 -04:00
test Fix handling of inherited check constraints in ALTER COLUMN TYPE. 2012-11-05 13:36:16 -05:00
timezone In our source code, make a copy of getopt's 'optarg' string arguments, 2012-10-12 13:35:43 -04:00
tools Adjust find_status for newer Linux 'nm' output format. 2012-11-13 21:08:07 -05:00
tutorial Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in Have make never delete intermediate files automatically 2012-10-31 23:33:35 -04:00
Makefile.shlib Remove configure flag --disable-shared, as it is no longer used by any 2012-08-30 16:26:53 -04:00
nls-global.mk Lots of doc corrections. 2012-04-23 22:43:09 -04:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00