"Lu, Dan" <Dan.Lu@xxxxxxx> writes: > I am trying to upgrade an instance of PostgreSQL in unix from 11.5 to 12.1. > UNIX:> pg_upgrade -d /hostname/pg/dpoc/data -D /hostname/pg/dpoc/data -b /hostname/pg/PostgreSQL-11.5/bin -B /hostname/pg/PostgreSQL-12.1/bin -p 5432 -P 9432 -c -v No, you can't use the same directory to hold old and new versions at the same time. After you're done with the upgrade, you could move the new data directory to be where the old one had been. regards, tom lane