Managed Postgres on Railway
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.
Related posts
- Production Postgres on Railway: From First Deploy to High Availability
Railway mediumAdeptRailway Postgres can grow from a single private-networked database to a production setup with volume backups, point-in-time recovery, PgBouncer connection pooling and Patroni-based high availability, demonstrated with an orders API that uses idempotency keys so retries stay safe. PITR restores into a separate service for validation, and the guide stresses measuring RPO/RTO end to end, including validation and reconnection time. Transaction pooling breaks session settings, LISTEN, advisory locks and named prepared statements, so migrations should use an unpooled URL. In one small planned switchover test (primary, two replicas, etcd, HAProxy), writes were interrupted for about 17 seconds. That is a single observation, not a guaranteed failover time.
- Building an enterprise Postgres service in ClickHouse Cloud
ClickHouse easyNovice
ClickHouse Cloud's managed Postgres runs on NVMe with up to two cross-AZ synchronous standbys using quorum commit (acknowledged when one standby confirms) and automatic failover. Standbys are deliberately kept off read traffic so WAL replay lag and VACUUM interference don't delay failover; separate read replicas handle read scaling. Other features include failover-safe logical replication slots that keep ClickPipes/PeerDB CDC into ClickHouse running across failovers without full resyncs, WAL-G daemon-based continuous archiving for 7-day PITR and forks, and per-cluster dedicated VPCs with TLS, AES-256 at rest and Private Link. Planned work includes GCP support, near-sub-second CDC v2, Query Performance Insights and Terraform support.
- PostgresBench: Measuring the impact of High Availability on Managed Postgres performance
ClickHouse mediumAdept
PostgresBench now measures the performance cost of high-availability configurations across managed Postgres services, comparing shared-nothing designs (ClickHouse Managed Postgres, RDS, Crunchy Bridge) that use streaming standbys with shared-storage forks (Aurora, Neon) that replicate WAL to a storage layer. On a 16 vCPU/64 GB instance with a 500 GB dataset, ClickHouse's NVMe-backed service dropped to 94% of single-node TPS with one async standby and 79% with two synchronous quorum standbys, with p99 latency rising 1.8x and 2.5x. RDS throughput was roughly flat, but its p99 rose to 1.7x with one sync standby and 6.3x (817 ms) with a two-standby quorum cluster. The vendor-run results claim 2-4x throughput advantages for ClickHouse over the other services at matched compute and comparable durability.
- What it Takes to Recover a 100 TB Postgres Database in AWS RDS
Neon easyNovice
Recovering a 100 TB Postgres database on AWS RDS is slow or incomplete depending on the failure mode. Snapshot restore plus WAL replay handles logical errors, but copying the snapshot and replaying up to a day of WAL can take hours. Multi-AZ standbys cover AZ and hardware failures but cannot undo bad writes, double instance costs, and may silently drop to asynchronous replication and lag under heavy writes. Neon's alternative is presented: a versioned, log-structured key-value storage layer separated from stateless compute, which allows instant branch-based PITR and storage-level multi-AZ redundancy without a standby replica.
- PGKeeper: Building the bouncer we needed for Postgres
Figma mediumAdept
Figma replaced PgBouncer with PGKeeper, a Go service built on PGX that sits between its DBProxy router and each Postgres instance. Clients reach it over gRPC with per-query metadata such as traffic tier and request source. PgBouncer was ruled out for its single-threaded scaling ceiling, lack of prioritization and backpressure, and weak protection against connection churn. Pooling inside DBProxy was ruled out because hundreds of replicas cannot share a ~100-connection pool, and PGCat would have required a fork. PGKeeper token-bucket rate-limits both connection creation and teardown, warms pools before taking traffic, and avoids churn with bounded result draining, automatic ROLLBACK, and context cancellation via pg_cancel_backend plus SELECT 1. Its priority-based semaphore admission control uses CoDel to shed stale lower-priority work during concurrency spikes.