Managed Postgres the Fly.io Way
Managed Postgres is our fully-managed database service that handles every aspect of running production PostgreSQL databases. We take care of:
- Automatic backups and recovery
- High availability with automatic failover
- Performance monitoring, metrics, and logs
- Resource scaling (CPU, RAM, storage)
- Connection pooling with PgBouncer on every plan
- Automatic encryption of data at rest and in transit
What You Get With Fly.io MPG
We're releasing new features all the time! Watch this space.
Where is Managed Postgres Available?
If you don't see a region close to you in this list, hang tight! We're rolling Managed Postgres out to more regions as quickly as possible.
Flexible, Easy Storage
Scalable Pricing
Not having to manage your database? Priceless. But that's hard to budget for, so we'll just tell you what it costs: however much database storage you use (at $0.28/provisioned GB/month) plus whichever plan below works best for you.
Basic
All plans include high availability, backups, and connection pooling.
Starter
All plans include high availability, backups, and connection pooling.
Launch
All plans include high availability, backups, and connection pooling.
Scale
All plans include high availability, backups, and connection pooling.
Performance
All plans include high availability, backups, and connection pooling.
Getting Started
Create a cluster, attach it to an app, and get back to work. Attaching sets a DATABASE_URL secret on the app, pointed at the pooled endpoint that routes through PgBouncer.
fly mpg create
fly mpg attach your-cluster-id -a your-app-name
To open a psql session against the cluster, run fly mpg connect. To reach it from a tool running on your own machine, run fly mpg proxy and connect through the forwarded local port.