POSTGRESQL-UPGRADE(1)

πŸ’– POSTGRESQL-UPGRADE πŸ’–

okay bestie, so this is the manual page for postgresql-upgrade, and it's giving version 8.12. it lives in the User Commands section, it's a lil' wrapper script, and it's about to make your database glow-up happen. no cap. πŸ¦‹


✨ SYNOPSIS ✨

postgresql-upgrade [--upgrade-from=ID] DATADIR

🌸 DESCRIPTION 🌸

so basically, postgresql-upgrade is a wrapper script for pg_upgrade. that's the whole vibe. it comes with pre-configured pg_upgrade options and environment variables already baked in, so you don't have to hand-assemble everything yourself. iconic behaviour honestly. πŸ’…


πŸŽ€ OPTIONS πŸŽ€

  • --upgrade-ids β€” prints the list of available IDs of upgrade scenarios straight to standard output. it's giving "show me the menu" energy. ✨
  • --upgrade-from=ID β€” specifies the id of the "old" postgresql stack you're upgrading from. wanna know which IDs you can even use? run --upgrade-ids and find out. the default is 'postgresql'. periodt. πŸ’–

🫢 Other options:

  • --help β€” show this help.
  • --version β€” show version of this package.

🌈 ENVIRONMENT 🌈

  • PGSETUP_INITDB_OPTIONS β€” whatever options you tuck inside this variable get passed along to the subsequent call of the initdb binary (go peek at man initdb(1) for the deets). and yes, this variable is used during 'upgrade' mode too, because the new cluster is actually re-initialized from the old one. so it's doing double duty, main character energy fr fr. πŸ‘‘
  • PGSETUP_PGUPGRADE_OPTIONS β€” the options in this variable are passed next to the subsequent call of pg_upgrade. want the full scoop on which options are even possible? that's a man pg_upgrade(1) moment, bestie. πŸ”₯
πŸ’€ also, heads up: this thing is Built against PostgreSQL version 18.6. so that's the energy it's bringing to the party.

and that's the whole page, babe β€” you're officially upgraded (or at least you know how to be). mwah. πŸ’œ

postgresql-upgrade 8.12 β€” August 2026 πŸŽ€βœ¨πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from