mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Change pg_upgrade to use port 50432 by default to avoid unintended
client connections during the upgrade. Also rename data/bin/port environment variables to being with 'PG'. Also no longer honor PGPORT.
This commit is contained in:
@ -29,6 +29,9 @@ output_check_banner(bool *live_check)
|
||||
if (user_opts.check && is_server_running(old_cluster.pgdata))
|
||||
{
|
||||
*live_check = true;
|
||||
if (old_cluster.port == DEF_PGUPORT)
|
||||
pg_log(PG_FATAL, "When checking a live old server, "
|
||||
"you must specify the old server's port number.\n");
|
||||
if (old_cluster.port == new_cluster.port)
|
||||
pg_log(PG_FATAL, "When checking a live server, "
|
||||
"the old and new port numbers must be different.\n");
|
||||
|
Reference in New Issue
Block a user