Database migrations are a regular activity for any app, but there are a few things that can help make them run smoother on a production app. Here are a couple of tips to help manage migrations better.
If you’re looking to simulate a production workload against a database once you make some changes, pgreplay can help. It parses Postgres logs and then replays them for you.
Citus 7, which extends Postgres to easily shard your database, is here and introduces a number of new features including a foundation for distributed transactions, better framework integration, and Postgres 10 support.
Postgres 10 is coming with some native table partitioning. While this was possible before it took more manual work. Here's a few links with an early look at what’s coming.