Loading topic
pg_upgrade, and logical replication. This chapter compares them and gives you criteria for choosing one. The later chapters in this tutorial run pg_upgrade step by step.7 min readpg_ctl starts and stops a server, and what pg_dump produces. You should also have read the earlier chapters on why major upgrades differ and how the upgrade approaches compare. Here you 8 min readpg_ctl, know where a cluster's data directory lives, and have read the previous chapter on what pg_upgrade does internally. It covers the choice you make before running the upgrade: how the old cluster's data files get into the new cluster.7 min readpg_upgrade starts. This chapter covers the preparation work: reading release notes, taking backups, installing binaries, matching extensions, and checking the old cluster for known blockers. I assume you can administer a PostgreSQL cluster (data directory, `7 min readpg_ctl and initdb, know what a data directory is, and have both the old and new PostgreSQL binaries installed side by side. By the end you will be able to create an empty new cluster that pg_upgrade accepts, and you will know which settings have to match the ol8 min readpg_ctl, you know what a data directory is, and you have already built the new empty cluster from the previous chapter. It covers what pg_upgrade --check verifies, how to read its output, and how to turn it into a repeatable rehearsal befo5 min readpg_upgrade command, what its output means, and what state both clusters are in afterwards. It assumes you have already done the following:8 min readpg_upgrade --check passed, and the real upgrade (pg_upgrade without --check) finished without errors. You should be comfortable with psql, pg_ctl and the idea of an extension. The commands use the s8 min readpg_ctl, you have taken backups with pg_dump or pg_basebackup, and you know the three transfer modes from earlier in this tutorial: copy, clone and link. It also assumes you have run pg_upgrade --check and understand the upgrade seque8 min readpg_upgrade only touches one cluster. It reads the old data directory and builds a new one that the new major version can open. It knows nothing about the standby servers that follow the primary.7 min readinitdb for the new cluster and used pg_upgrade --check, --link, and --jobs as shown in the earlier chapters. You should be comfortable reading server logs and running psql against both clusters. Here you will learn to read a pg_upgrade failure, mat7 min read