Skip to main content
The Developer plan is Managed Postgres for side projects, prototypes and small apps. You get a highly available, two-node Postgres cluster with daily backups for $4 a month.

What the Developer plan includes

  • High availability: a primary and a replica, each on a shared-cpu-1x Machine with 256MB of memory, with automatic failover.
  • Daily backups: one full backup a day, kept for 1 day. See Backups.
  • Storage: 1GB to start, growing automatically up to 5GB.
  • Up to 20 connections, straight to Postgres.
  • Auto-pause: the cluster pauses when nothing is connected and wakes on the next connection. See Auto-pause.
  • Everything else in Managed Postgres: encryption, extensions, metrics, and access from your organization’s private network.

Pricing

The Developer plan costs $4 for 30 days, including storage, billed by the second like every Managed Postgres plan. You’re billed while the cluster exists, including the time it’s paused, so a cluster you delete partway through the month costs less. The Developer plan is included in the Free plan. A Free plan organization can have one Developer plan cluster, and its cost counts toward the $5 of monthly usage.

How it differs from other plans

The Developer plan is smaller and simpler than the other Managed Postgres plans:

Backups

We take one full backup of your cluster a day, and keep it for 1 day. That gives you about a day to restore from if something goes wrong, so keep your own copy of anything you can’t lose, for example with pg_dump. You can restore from a backup, but not to a point in time. On-demand backups are full backups only. fly mpg backup create --type incr returns an error on the Developer plan.

Maintenance

Developer plan clusters don’t have a maintenance window. We can run maintenance at any time. We work to avoid downtime, but your app may see short interruptions, so make sure it reconnects when a connection drops.

Auto-pause

A Developer plan cluster pauses after 15 minutes with no client connections. While it’s paused, the dashboard shows that it wakes on the next connection. When a client connects, the cluster wakes. This usually takes about 15 seconds, and can take up to 25. The connection waits for the cluster to wake, so set your client’s connection timeout to at least 30 seconds.

Storage limit

Your cluster starts with 1GB of storage and grows automatically, 1GB at a time, up to 5GB. The 5GB holds your data and Postgres’s write-ahead log (WAL), so your data runs out of room before it reaches 5GB. When your cluster gets close to 5GB, we email you. Upgrade to Basic or a larger plan before it fills up. A full disk takes your database down: when Postgres can’t write its WAL, it crashes and restarts.

Create a Developer plan cluster

In the dashboard, create a Managed Postgres cluster as usual and choose the Developer plan. See Create and connect to a cluster. With flyctl:
You need flyctl v0.5.15 or later. Run fly version upgrade if your flyctl doesn’t list the Developer plan. Your cluster gets a 1GB volume by default.

Connect to your cluster

Attach your app to the cluster:
This sets a DATABASE_URL secret on your app. On the Developer plan, it’s the cluster’s direct URL, which connects straight to Postgres. If your app already has a DATABASE_URL secret, choose another name with --variable-name. See fly mpg attach. You don’t need PgBouncer settings, such as disabling prepared statements for transaction mode. Keep your app’s connection pool small, since all your clients share the 20 connections. The direct URL keeps working if you upgrade to a larger plan. To use PgBouncer after an upgrade, attach again to get the pooled URL:
The pooled URL uses PgBouncer in transaction mode. If your app uses prepared statements, SET, advisory locks or LISTEN/NOTIFY, keep the direct URL, or change the pool mode to session first. See Connection pooling. See Connect your client.

Upgrade to a larger plan

You can move a Developer plan cluster to Basic or a larger plan at any time from the dashboard. Your disk grows to the new plan’s default size, 10GB on Basic. Your app keeps using the direct URL. See Connect to your cluster. You can’t move a cluster from another plan to the Developer plan. On the Free plan, upgrade your organization to Pay As You Go before you move the cluster to a larger plan. See Changing your MPG plan.