Today I upgraded our databases from PostgreSQL 9.1 to 9.3. I am not a database expert or sysadmin, but I thought I'd share the notes I put together from other sources and my own fumbles in the hope that others might have an easier time.
These instructions are loosely based on those found on the postgresql wiki, amended with my own experiences and other sources.
- Our postgres data directory is stored on a separate EBS volume so this guide also covers moving these around.
- I am upgrading postgresql 9.1 to 9.3, I have no idea how well these instructions will work for other versions.
- I am not using "Link Mode" in order to preserve the old database, which makes the upgrade a little slower