postgresql/src/backend
Tom Lane c299477229 Fix filling of postmaster.pid in bootstrap/standalone mode.
We failed to ever fill the sixth line (LISTEN_ADDR), which caused the
attempt to fill the seventh line (SHMEM_KEY) to fail, so that the shared
memory key never got added to the file in standalone mode.  This has been
broken since we added more content to our lock files in 9.1.

To fix, tweak the logic in CreateLockFile to add an empty LISTEN_ADDR
line in standalone mode.  This is a tad grotty, but since that function
already knows almost everything there is to know about the contents of
lock files, it doesn't seem that it's any better to hack it elsewhere.

It's not clear how significant this bug really is, since a standalone
backend should never have any children and thus it seems not critical
to be able to check the nattch count of the shmem segment externally.
But I'm going to back-patch the fix anyway.

This problem had escaped notice because of an ancient (and in hindsight
pretty dubious) decision to suppress LOG-level messages by default in
standalone mode; so that the elog(LOG) complaint in AddToDataDirLockFile
that should have warned of the problem didn't do anything.  Fixing that
is material for a separate patch though.
2012-12-16 15:02:49 -05:00
..
access Update comment in heapgetpage() regarding PD_ALL_VISIBLE vs. Hot Standby. 2012-12-14 15:44:38 -05:00
bootstrap Add context info to OAT_POST_CREATE security hook 2012-10-23 18:24:24 -03:00
catalog Update minimum recovery point on truncation. 2012-12-10 16:57:16 +02:00
commands Disable event triggers in standalone mode. 2012-12-11 19:28:31 -05:00
executor Add defenses against integer overflow in dynahash numbuckets calculations. 2012-12-11 22:09:05 -05:00
foreign Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
lib Basic binary heap implementation. 2012-11-29 11:16:59 -05:00
libpq Attempt to un-break Windows builds with USE_LDAP. 2012-12-04 17:25:51 -05:00
main Unify calling conventions for postgres/postmaster sub-main functions 2012-06-25 21:30:12 +03:00
nodes Fix planning of non-strict equivalence clauses above outer joins. 2012-10-18 12:30:10 -04:00
optimizer Fix assorted bugs in CREATE/DROP INDEX CONCURRENTLY. 2012-11-28 21:26:01 -05:00
parser COPY FREEZE and mark committed on fresh tables. 2012-12-01 12:54:20 +00:00
po Translation updates 2011-08-17 14:07:46 +03:00
port Change test ExceptionalCondition to return void 2012-11-30 19:24:21 -03:00
postmaster Allow a streaming replication standby to follow a timeline switch. 2012-12-13 19:17:32 +02:00
regex Prevent corner-case core dump in rfree(). 2012-07-15 13:27:54 -04:00
replication Allow a streaming replication standby to follow a timeline switch. 2012-12-13 19:17:32 +02:00
rewrite Support automatically-updatable views. 2012-12-08 18:26:21 -05:00
snowball Remove configure flag --disable-shared, as it is no longer used by any 2012-08-30 16:26:53 -04:00
storage Fix performance problems with autovacuum truncation in busy workloads. 2012-12-11 14:33:08 -06:00
tcop Allow adding values to an enum type created in the current transaction. 2012-12-01 14:27:30 -05:00
tsearch Fix logical errors in tsquery selectivity estimation for prefix queries. 2012-09-11 21:23:20 -04:00
utils Fix filling of postmaster.pid in bootstrap/standalone mode. 2012-12-16 15:02:49 -05:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Call check_keywords.pl in maintainer-check 2012-02-27 13:53:12 +02:00
Makefile Fix PGXS support for building loadable modules on AIX. 2012-10-09 21:04:06 -04:00
nls.mk Sort file list when creating gettext-files 2011-12-27 20:20:56 +02:00