1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

In pg_upgrade, pull the port number from postmaster.pid, like we do for

socket location.  Also, prevent putting the socket in the current
directory for pre-9.1 servers in live check and non-live check mode,
because pre-9.1 pg_ctl -w can't handle it.

Backpatch to 9.2.
This commit is contained in:
Bruce Momjian
2012-09-03 22:15:09 -04:00
parent f88ad86fba
commit d0a51117da
3 changed files with 63 additions and 42 deletions

View File

@ -86,11 +86,12 @@ main(int argc, char **argv)
setup(argv[0], live_check);
check_cluster_versions();
check_cluster_compatibility(live_check);
get_sock_dir(&old_cluster, live_check);
get_sock_dir(&new_cluster, false);
check_cluster_compatibility(live_check);
check_old_cluster(live_check, &sequence_script_file_name);