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:
@ -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);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user