Video in progress

Run PostgreSQL yourself (on VMs or Kubernetes) or use a managed service (RDS, Cloud SQL): how do you evaluate it?

I usually choose managed: backups, PITR, failover, patches and monitoring come ready, and the team focuses on the product. I'd consider running it myself only with a concrete reason: a needed extension isn't available, you need superuser, the price differs a lot at large volume, or there's a data residency requirement.

📖 Answer

In the comparison I look at the total cost of ownership, not the "database price".

What managed gives you:

  • automatic backups and PITR, with a tested restore;
  • failover (Multi-AZ), minor version patches;
  • disk expansion with one click, metrics;
  • the person who wakes up at night is on the provider's side.

What you lose:

  • no superuser, some extensions and settings are closed off;
  • you can't fully control major upgrades and the maintenance window;
  • at large volume the price (especially IOPS and replicas) can be 2-3 times higher than running it yourself;
  • vendor lock-in (especially with "Postgres-compatible" products like Aurora).

What running it yourself requires: Patroni or a Kubernetes operator (like CloudNativePG), pgBackRest, monitoring, restore drills, an upgrade routine, and most importantly at least two people who understand all of it. If it depends on one person, that's a risk.

These are the questions I ask for the decision:

  1. Who on the team has deep PostgreSQL experience, and what happens if they leave?
  2. What are the RPO/RTO requirements, and can we prove them ourselves (with a drill)?
  3. Are the needed extensions available in the managed service?
  4. What does the 3-year cost forecast look like, including people's time?
  5. What do the regulator's requirements say about where the data must live?

In many companies the path goes like this: managed at the start, and later, when the volume is large and a strong platform team has appeared, moving some heavy databases to self-management.