TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Achieving a zero-downtime Postgres major version upgrade

15 pointsby mattlong5 months ago
Hey HN,<p>I put together this blog post[0] and this repository[1] with supporting resources to immortalize the decision tree and step-by-step run book I used that led to us successfully upgrading the AWS RDS Aurora Postgres database of Medplum&#x27;s hosted service from v12 to v16 without downtime. There are many write-ups out there on the topic, but just about all of them were frustratingly light on details or assumed the reader was already fluent in the technologies used. This guide and the runbook are anything but light on details and attempts to explain&#x2F;describe decisions and steps from first principles when possible.<p>As just about anyone who has worked with Postgres version upgrades and logical replication will tell you, there are many sharp edges and a steep learning curve that can only be overcome by doing. I have varying levels of experience with the tools used and by no means claim to be an expert in any of them! I&#x27;m sure there are ways this process could be improved and streamlined and would absolutely love to hear any suggestions and field questions from you either here or in the issues&#x2F;discussions&#x2F;PRs of the repository.<p>Medplum[2] relies heavily on Postgres and we only intend on deepening our relationship with it and all it has to offer as we continue to grow. That was a big part of our reasoning to justify investing the time to level-up our operational proficiency with Postgres. We&#x27;re an open source company, so it felt right to make this guide open source too!<p>[0]: <a href="https:&#x2F;&#x2F;www.medplum.com&#x2F;blog&#x2F;zero-downtime-postgres-major-version-upgrade">https:&#x2F;&#x2F;www.medplum.com&#x2F;blog&#x2F;zero-downtime-postgres-major-ve...</a> [1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;medplum&#x2F;medplum-postgres-upgrade">https:&#x2F;&#x2F;github.com&#x2F;medplum&#x2F;medplum-postgres-upgrade</a> [2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;medplum&#x2F;medplum">https:&#x2F;&#x2F;github.com&#x2F;medplum&#x2F;medplum</a>

2 comments

gabrielruttner5 months ago
Hey - great writeup!<p>Curious how you&#x27;re planning to handle Postgres versions going forward - will v16 be a hard requirement for new OSS deployments? What&#x27;s your strategy for managing existing deployments on older versions?
评论 #42370289 未加载
brown5 months ago
Love Postgres, but major version upgrades remain the one genuine pain point. One misstep and you&#x27;re in backup-restoration hell. Solid guide.