postgresql/src/backend
Tom Lane 54faed3bc5 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:12:11 +00:00
..
access Fix overly-strict sanity check in BeginInternalSubTransaction that made it 2007-05-30 21:02:02 +00:00
bootstrap Postpone pg_timezone_initialize() until after creation of postmaster.pid, 2005-10-20 20:06:03 +00:00
catalog Support explicit placement of the temporary-table schema within search_path. 2007-04-20 02:38:33 +00:00
commands CREATE DOMAIN ... DEFAULT NULL failed because gram.y special-cases DEFAULT 2007-06-20 18:16:10 +00:00
executor Fix dynahash.c to suppress hash bucket splits while a hash_seq_search() scan 2007-04-26 23:25:30 +00:00
lib Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
libpq On win32, don't use SO_REUSEADDR for TCP sockets. 2007-06-04 11:59:27 +00:00
main Set progname early in the postmaster/postgres binary, rather than doing 2006-02-01 00:47:03 +00:00
nodes Some more missed copyright notices. Many of these look like they 2005-01-01 20:44:34 +00:00
optimizer Fix a thinko in my patch of a couple months ago for bug #3116: it did the 2007-05-01 18:54:17 +00:00
parser transformColumnDefinition failed to complain about 2007-06-20 18:21:25 +00:00
po Translation updates 2007-04-18 20:57:58 +00:00
port Fix failure to restart Postgres when Linux kernel returns EIDRM for shmctl(). 2007-07-02 20:12:11 +00:00
postmaster Implement a chunking protocol for writes to the syslogger pipe, with messages 2007-06-14 01:50:35 +00:00
regex Install Tcl regex fixes to sync our regex engine with Tcl 8.4.8 (up from 2004-11-24 22:56:54 +00:00
rewrite Fix markQueryForLocking() to work correctly in the presence of nested views. 2007-03-01 18:50:49 +00:00
storage Fix aboriginal bug in BufFileDumpBuffer that would cause it to write the 2007-06-01 23:43:28 +00:00
tcop Fix portal management code to support non-default command completion tags for 2007-02-18 19:49:42 +00:00
utils Fix a passel of ancient bugs in to_char(), including two distinct buffer 2007-06-29 01:52:04 +00:00
Makefile Back-port several small portability fixes to get contrib building 2005-08-02 01:35:23 +00:00
nls.mk New translation 2005-01-09 17:10:29 +00:00