postgresql/contrib/pg_upgrade
Tom Lane f763b77193 Fix pg_upgrade to cope with non-default unix_socket_directory scenarios.
When starting either an old or new postmaster, force it to place its Unix
socket in the current directory.  This makes it even harder for accidental
connections to occur during pg_upgrade, and also works around some
scenarios where the default socket location isn't usable.  (For example,
if the default location is something other than "/tmp", it might not exist
during "make check".)

When checking an already-running old postmaster, find out its actual socket
directory location from postmaster.pid, if possible.  This dodges problems
with an old postmaster having a configured location different from the
default built into pg_upgrade's libpq.  We can't find that out if the old
postmaster is pre-9.1, so also document how to cope with such scenarios
manually.

In support of this, centralize handling of the connection-related command
line options passed to pg_upgrade's subsidiary programs, such as pg_dump.
This should make future changes easier.

Bruce Momjian and Tom Lane
2012-09-03 13:52:40 -04:00
..
.gitignore pg_upgrade: Add new generated file to .gitignore 2012-03-20 20:40:31 +02:00
check.c Fix pg_upgrade to cope with non-default unix_socket_directory scenarios. 2012-09-03 13:52:40 -04:00
controldata.c pg_upgrade: fix off-by-one mistake in snprintf 2012-06-28 23:37:27 -04:00
dump.c Fix pg_upgrade to cope with non-default unix_socket_directory scenarios. 2012-09-03 13:52:40 -04:00
exec.c pg_upgrade: Fix exec_prog API to be less flaky 2012-08-27 14:29:14 -04:00
file.c Fix thinko in comment 2012-08-27 14:29:14 -04:00
function.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
IMPLEMENTATION Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
info.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
Makefile Remove analyze_new_cluster.sh on make clean, too 2012-08-27 14:29:14 -04:00
option.c Fix pg_upgrade to cope with non-default unix_socket_directory scenarios. 2012-09-03 13:52:40 -04:00
page.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
pg_upgrade.c Fix pg_upgrade to cope with non-default unix_socket_directory scenarios. 2012-09-03 13:52:40 -04:00
pg_upgrade.h Fix pg_upgrade to cope with non-default unix_socket_directory scenarios. 2012-09-03 13:52:40 -04:00
relfilenode.c In pg_upgrade, use pg_log() instead of prep_status() for 2012-08-03 12:43:37 -04:00
server.c Fix pg_upgrade to cope with non-default unix_socket_directory scenarios. 2012-09-03 13:52:40 -04:00
tablespace.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
test.sh pg_upgrade: Run the created scripts in the test suite 2012-08-23 02:29:21 -04:00
TESTING Remove whitespace from end of lines 2012-05-15 22:19:41 +03:00
util.c Prevent pg_upgrade from crashing if it can't write to the current 2012-08-10 17:14:48 -04:00
version_old_8_3.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
version.c In pg_upgrade, add various logging improvements: 2012-03-12 19:48:03 -04:00