Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Supabase 4 min read Announcement easyNovice

Fly Postgres, managed by Supabase

Supabase and Fly.io launched Fly Postgres, a managed Postgres running on Fly Machines (Firecracker VMs) with Supabase features like Supavisor pooling, pgvector, PITR, branching and auto-generated REST/GraphQL APIs; the offering has since been deprecated. Under the hood, Supabase packages all its services into a single All In One Docker image built from its Packer pipeline. Because Fly volumes lack network-attached storage, they are treated as ephemeral, with WAL-G continuously streaming WAL to S3 for recovery onto new hosts. Open issues include client IPs being masked by the Fly proxy, which breaks network restrictions, and inter-cloud bandwidth costs from backing up to AWS.

Related posts

  • Getting started with Ruby on Rails and Postgres on Supabase

    Supabase mediumAdept

    A Rails app can be wired to a Supabase-hosted Postgres database by scaffolding with `rails new -d=postgresql` and supplying the Supabase pooler connection URI through the `DATABASE_URL` environment variable. The walkthrough generates an Article scaffold, runs migrations, inserts and queries records from the Rails console, and routes the root path to the articles index. Deployment to Fly.io uses `fly launch` with Postgres provisioning set to none, the connection string stored as a Fly secret, and `fly deploy`.

  • Managed Postgres on Railway

    Railway mediumAdept

    Railway's managed Postgres now covers the full database lifecycle: private-by-default services with reference-variable credentials, usage-billed vertical scaling, live volume resizing, and one-click PgBouncer pooling with a separate unpooled URL for migrations. HA conversion turns an existing node into the primary of a Patroni-managed streaming-replica cluster with etcd for leader election and HAProxy for routing, so apps keep the same endpoint through failover but still need reconnect/retry logic. Point-in-time recovery uses pgBackRest with continuous WAL archiving (weekly full, daily differential, ~4 weeks retention) and restores into a separate service. Automatic image updates, CVE patching, guided pg_upgrade major upgrades with compatibility checks, pg_stat_statements-based query statistics, and CLI/MCP agent workflows round out the platform.

  • NoSQL Postgres: Add MongoDB compatibility to your Supabase projects with FerretDB

    Supabase mediumAdept

    FerretDB, an open source MongoDB-compatible proxy, can run on top of a Supabase Postgres database, storing each collection as a table in a `ferretdb` schema with documents as JSONB rows. The walkthrough runs the FerretDB Docker image locally with `FERRETDB_POSTGRESQL_URL` pointed at a session-mode pooler connection string. It then connects with `mongosh` using PLAIN auth, performs inserts and updates, and inspects the resulting JSONB in the Supabase dashboard. For production it deploys FerretDB to Fly.io with a sample `fly.toml`, a secret for the database URL and a dedicated IPv4 address, which is a paid feature.

  • Supavisor 1.0: a scalable connection pooler for Postgres

    Supabase mediumAdept

    Supavisor 1.0, Supabase's Elixir-based Postgres connection pooler, is production-ready and adds query load balancing, named prepared statement support in transaction mode, and query cancelation. All SQL is now parsed via pg_query.rs through Rustler. Reads are randomly spread across primary and replicas, while writes find the primary by probing until a write succeeds, which adds a few milliseconds but makes failover transparent. PREPARE statements are broadcast to all backend connections, trading some memory for throughput. The release also raises default client limits for smaller projects and uses IPv4-to-IPv6 mediation to avoid AWS IPv4 charges.

  • Introducing Read Replicas

    Supabase mediumAdept

    Supabase now supports Postgres read replicas in 12 regions, up to two per project, for offloading reads and analytics, serving data closer to users, and redundancy. Replication combines native streaming replication for low lag with file-based WAL shipping as a fallback, reusing their PITR pipeline (WAL-G archiving to S3) so replicas that fall behind past wal_keep_size can still catch up. Each replica gets its own Supavisor connection pool and PostgREST instance, with a round-robin load-balancing endpoint. Pricing covers replica compute and disk plus $0.09/GB WAL transfer, and automatic failover, geo-routing and Supavisor read/write splitting are planned.

The quest for software engineering knowledge.

Look:
Layout: