NixOS PostgreSQL Major Version Upgrade

PostgreSQL major version upgrades are something that NixOS currently doesn’t handle for you. This is my process, documented mostly so that I can remember it next time I want to upgrade. Warning I highly recommend that you read the PostgreSQL Upgrading documentation . It is well written and gives important caveats. It would be risky to follow through these steps without understanding the process.…