postgresql/src
Tom Lane 9255d21d2f Move postmaster's RemovePgTempFiles call to a less randomly chosen place.
There is no reason to do this as early as possible in postmaster startup,
and good reason not to do it until we have completely created the
postmaster's lock file, namely that it might contribute to pg_ctl thinking
that postmaster startup has timed out.  (This would require a rather
unusual amount of time to be spent scanning temp file directories, but we
have at least one field report of it happening reproducibly.)

Back-patch to 9.1.  Before that, pg_ctl didn't wait for additional info to
be added to the lock file, so it wasn't a problem.

Note that this is not a complete fix to the slow-start issue in 9.1,
because we still had identify_system_timezone being run during postmaster
start in 9.1.  But that's at least a reasonably well-defined delay, with
an easy workaround if needed, whereas the temp-files scan is not so
predictable and cannot be avoided.
2012-05-21 22:50:35 -04:00
..
backend Move postmaster's RemovePgTempFiles call to a less randomly chosen place. 2012-05-21 22:50:35 -04:00
bin Only attempt to show collations on servers >= 9.1. 2012-05-10 09:12:51 +02:00
include Prevent loss of init fork when truncating an unlogged table. 2012-05-11 09:48:54 -04:00
interfaces ecpg: Fix off-by-one error in memory copying 2012-03-11 01:03:09 +02:00
makefiles Fix pgxs.mk to always add --dbname=$(CONTRIB_TESTDB) to REGRESS_OPTS. 2011-08-24 15:17:03 -04:00
pl PL/pgSQL RETURN NEXT was leaking converted tuples, causing 2012-05-09 22:53:17 -07:00
port Stamp 9.1.3. 2012-02-23 17:53:36 -05:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Fix planner's handling of RETURNING lists in writable CTEs. 2012-04-25 20:20:43 -04:00
timezone Fix edge-case behavior of pg_next_dst_boundary(). 2012-04-25 17:25:18 -04:00
tools Fix MSVC builds broken by xsubpp change 2011-11-27 01:23:00 -05:00
tutorial Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02: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 Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:27 -04:00
Makefile.shlib Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:50 -04:00
nls-global.mk Fix makefile logic to not break the build when xgettext is missing 2010-10-14 23:16:46 +03:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00