postgresql/src/backend
Tom Lane 1c7fe33fdb Fix failure to restart Postgres when Linux kernel returns EIDRM for shmctl().
This is a Linux kernel bug that apparently exists in every extant kernel
version: sometimes shmctl() will fail with EIDRM when EINVAL is correct.
We were assuming that EIDRM indicates a possible conflict with pre-existing
backends, and refusing to start the postmaster when this happens.  Fortunately,
there does not seem to be any case where Linux can legitimately return EIDRM
(it doesn't track shmem segments in a way that would allow that), so we can
get away with just assuming that EIDRM means EINVAL on this platform.

Per reports from Michael Fuhr and Jon Lapham --- it's a bit surprising
we have not seen more reports, actually.
2007-07-02 20:11:55 +00:00
..
access Improve logging of checkpoints. Patch by Greg Smith, worked over 2007-06-30 19:12:02 +00:00
bootstrap Implement "distributed" checkpoints in which the checkpoint I/O is spread 2007-06-28 00:02:40 +00:00
catalog Implement "distributed" checkpoints in which the checkpoint I/O is spread 2007-06-28 00:02:40 +00:00
commands Avoid memory leakage when a series of subtransactions invoke AFTER triggers 2007-07-01 17:45:42 +00:00
executor Revert an ill-considered portion of my patch of 12-Mar, which tried to save a 2007-06-17 18:57:29 +00:00
lib Tweak the code in a couple of places to try to deliver more user-friendly 2007-05-28 16:43:24 +00:00
libpq On win32, don't use SO_REUSEADDR for TCP sockets. 2007-06-04 11:59:20 +00:00
main Cleanup the bootstrap code a little, and rename "dummy procs" in the code 2007-03-07 13:35:03 +00:00
nodes Separate parse-analysis for utility commands out of parser/analyze.c 2007-06-23 22:12:52 +00:00
optimizer Separate parse-analysis for utility commands out of parser/analyze.c 2007-06-23 22:12:52 +00:00
parser Separate parse-analysis for utility commands out of parser/analyze.c 2007-06-23 22:12:52 +00:00
po Translation updates 2006-12-02 01:16:16 +00:00
port Fix failure to restart Postgres when Linux kernel returns EIDRM for shmctl(). 2007-07-02 20:11:55 +00:00
postmaster Reduce the maximum sleep interval in the autovac launcher to 1 second, 2007-07-01 18:30:54 +00:00
regex Wording cleanup for error messages. Also change can't -> cannot. 2007-02-01 19:10:30 +00:00
rewrite Separate parse-analysis for utility commands out of parser/analyze.c 2007-06-23 22:12:52 +00:00
storage Fix comments not updated in recent patch. 2007-07-01 02:22:23 +00:00
tcop Arrange for SIGINT in autovacuum workers to cancel the current table and 2007-06-29 17:07:39 +00:00
utils Improve logging of checkpoints. Patch by Greg Smith, worked over 2007-06-30 19:12:02 +00:00
Makefile Replace useless uses of := by = in makefiles. 2007-02-09 15:56:00 +00:00
nls.mk Add _ to gettext triggers. Must have been forgotten here when it was introduced. 2005-10-04 11:14:03 +00:00