PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.
The --swap option moves the data directories from the old cluster to the new cluster and then replaces catalog files with those generated for the new cluster. Seepg_upgrade for more information.
--swap
pg_upgrade