DEV Community

Kamal G for Database Engineering

Posted on Edited on

Amazon RDS for Postgres vs ClickHouse Managed Postgres

Amazon RDS for PostgreSQL and ClickHouse Managed Postgres both run PostgreSQL for transactional applications. RDS combines network-attached EBS storage with AWS-native authentication, monitoring, and migration tools. ClickHouse Managed Postgres uses local NVMe storage, with optional replication into ClickHouse for analytics. The choice depends on the application's I/O demands, AWS dependencies, availability requirements, and total deployment cost.

Summary: when to choose each PostgreSQL service

  • Choose RDS for PostgreSQL when AWS-native features like IAM database authentication, RDS Proxy, or eligible Redshift zero-ETL integrations are requirements.
  • Choose ClickHouse Managed Postgres for disk-bound transactional workloads. Its local NVMe storage removes the network hop between database compute and storage. Copy-on-write branching and scale-to-zero for branch and agent environments are planned, as announced at GA
  • Compare specific HA configurations. Standby count, replication mode, recovery behavior, and readable replicas differ between the services.
  • Price the complete deployment. Include standbys, storage, IOPS, backups, and transfer. A ClickHouse analytics service is optional and billed separately from Managed Postgres.

What are Amazon RDS for PostgreSQL and ClickHouse Managed Postgres?

Amazon RDS for PostgreSQL

Amazon RDS for PostgreSQL is AWS's managed PostgreSQL service. It stores data on EBS volumes, offering GP3 storage or provisioned-IOPS storage, scaling up to 64 TiB capacity. RDS provides three deployment modes: single-AZ, Multi-AZ DB instance (one synchronous standby), and Multi-AZ DB cluster (a writer plus two reader instances). AWS-native integrations include IAM database authentication, RDS Proxy, CloudWatch Database Insights, DMS, and zero-ETL to Redshift.

ClickHouse Managed Postgres

ClickHouse Managed Postgres is a fully managed PostgreSQL service for performance-critical transactional workloads, built with Ubicloud. Developers use familiar PostgreSQL tools and drivers. The service manages backups and recovery, while the selected standby configuration determines failover readiness. It uses local NVMe storage colocated with compute across 50+ instance types spanning compute-, memory-, and storage-oriented configurations. The ClickHouse analytical database runs in a separate service, provisioned and metered independently. ClickPipes and WalShadow provide Postgres replication into ClickHouse for analytics. ClickHouse acquired Xata in November 2026 to add instant copy-on-write branches and clones, automatic idling, and scale-to-zero environments to Managed Postgres.

Check each service's current engine-version page for the supported PostgreSQL major versions before planning a deployment.

RDS PostgreSQL vs ClickHouse Managed Postgres comparison

Criterion Amazon RDS for PostgreSQL ClickHouse Managed Postgres
Storage backend EBS (GP3 or provisioned IOPS). Built-in storage-level redundancy within each AZ Local NVMe with backups, continuous WAL archiving, and configurable standby replication
Deployment and HA options Single-AZ, Multi-AZ DB instance (1 sync standby), Multi-AZ DB cluster (writer + 2 readers) No standby, 1 asynchronous standby, 2 synchronous standbys, or 1 synchronous standby with a WAL listener (preview). Standbys are dedicated to recovery
Connection pooling RDS Proxy (managed, IAM-capable, but SQL PREPARE commands pin sessions) Bundled PgBouncer in transaction mode (protocol-level prepared statements supported, but SQL-level PREPARE requires a direct connection)
Analytics separation Read replicas. Zero-ETL to Redshift from eligible DB instances, versions, and regions, excluding PostgreSQL Multi-AZ DB clusters Dedicated Postgres read replicas. CDC to a separately provisioned ClickHouse service via ClickPipes or WalShadow (private preview)
Backup retention DB instances: 0–35 days. Multi-AZ DB clusters: 1–35 days 7 days with continuous WAL archiving and PITR. Contact support for longer retention
Extensions Per-version list via rds.extensions. Includes pg_cron (12.5+) 90+ extensions including PostGIS, pgvector, pg_cron, pg_clickhouse
Database copies Snapshot and point-in-time restores into separate deployments Independent branches restored from backups and WAL. Instant copy-on-write branching planned, as announced at GA
Compute suspension Temporary stop/start for eligible DB instances, with automatic restart after seven days. Multi-AZ DB clusters cannot be stopped Provisioned compute runs continuously. Automatic idling and scale-to-zero for branch and agent environments planned, as announced at GA
Vector and text retrieval pgvector and PostgreSQL full-text search execute within RDS pgvector, VectorChord, and BM25 extensions within PostgreSQL. pg_clickhouse sends vector queries and regular-expression matching to separate ClickHouse compute
Pricing model Instance, EBS storage, optional additional IOPS and throughput, backups, and transfer. HA adds charges Full CPU, memory, and NVMe configuration, plus standbys, additional backups, and transfer. Analytics billed separately
Performance evidence Lower transaction throughput in the tested PostgresBench configurations. Single-node and both Multi-AZ topologies were tested Higher transaction throughput in the tested PostgresBench configurations. Workload and topology details are provided below

When to choose RDS PostgreSQL

RDS for PostgreSQL fits teams that depend on AWS-native integrations or need to provision EBS capacity and IOPS independently of compute. Its single-AZ, Multi-AZ DB instance, and Multi-AZ DB cluster options provide different balances of cost, recovery, and readable replica capacity.

When to choose ClickHouse Managed Postgres

ClickHouse Managed Postgres fits teams evaluating local NVMe for disk-bound transactional workloads. Confirm that its regions, instance configurations, standby options, and connection management meet the application's requirements. Teams that also need columnar analytics can add a ClickHouse service without moving transactional queries out of PostgreSQL.

PostgreSQL storage and I/O: EBS vs local NVMe

For RDS PostgreSQL, GP3 provides a baseline of 3,000 IOPS and 125 MiB/s below 400 GiB and 12,000 IOPS/500 MiB/s at 400 GiB and above. Additional IOPS and throughput can be provisioned at the higher capacity. Provisioned IOPS is available for workloads that need higher, consistent throughput. Storage autoscales upward but doesn't shrink automatically. The GP3 baseline IOPS are included in the storage price. Additional IOPS are billed separately. EBS replicates data across multiple devices within an AZ, providing storage-level durability independent of any single disk or host failure.

ClickHouse Managed Postgres places data on local NVMe, removing the network hop for disk I/O. I/O throughput scales with the selected instance type rather than through a separately configurable IOPS tier. Storage autoscaling starts at 90% disk usage and moves the database to the next larger configuration in its instance family. CPU and memory stay unchanged unless a larger disk requires a larger instance. The replacement-server cutover briefly interrupts connections. Local NVMe is ephemeral by nature: continuous WAL archiving supports recovery, while the chosen standby topology determines failover readiness and protection for acknowledged writes.

Local NVMe keeps PostgreSQL storage I/O on the compute host, avoiding the network hop required by network-attached storage. For workloads that need storage capacity independent of compute, or that rely on a known IOPS baseline with explicit provisioning controls, RDS's configurable EBS tiers offer that control.

AWS network-attached EBS versus local NVMe storage architecture, comparing network-based data access with direct disk I/O on the compute host.

RDS PostgreSQL vs ClickHouse Managed Postgres performance

ClickHouse Managed Postgres delivered higher transaction throughput and lower average and p99 latency than an RDS Multi-AZ DB cluster in the tested two-standby PostgresBench configurations.

ClickHouse ran PostgresBench using a pgbench TPC-B-like workload with 256 clients, a 500 GB dataset, and 16 vCPUs / 64 GB RAM on each primary. RDS used gp3 provisioned at 16,000 IOPS. Runs lasted ten minutes, with three runs recorded per configuration in the open-source repository.

Service and topology TPS Avg latency p99 latency
ClickHouse Managed Postgres, single node 26,328 9.70 ms 13.20 ms
ClickHouse Managed Postgres, 1 async standby 24,667 10.37 ms 24.17 ms
ClickHouse Managed Postgres, 2 sync standbys 20,720 12.34 ms 33.49 ms
RDS PostgreSQL, single node 4,399 58.14 ms 130.15 ms
RDS PostgreSQL, Multi-AZ DB instance (1 sync standby) 4,461 57.35 ms 221.69 ms
RDS PostgreSQL, Multi-AZ DB cluster (2 standbys) 4,659 54.92 ms 816.63 ms

Average latency is the mean transaction response time. p99 shows the threshold below which 99% of measured transaction latencies fall. The larger gap between average and p99 latency in the RDS HA results indicates a longer latency tail in this test. For applications with strict response-time targets, that tail matters alongside total throughput.

ClickHouse Managed Postgres delivered higher throughput and lower transaction latency across the configurations shown above. Size production deployments using representative queries, concurrency, and the selected HA topology. Matching primary CPU and memory doesn't establish equal total deployment cost. RDS Multi-AZ DB cluster readers can serve queries, while ClickHouse's HA standbys are dedicated to recovery.

High availability, failover, and backup recovery

RDS and ClickHouse Managed Postgres offer different HA topologies with different durability, failover, and backup trade-offs. Selecting "HA enabled" doesn't produce a like-for-like configuration between them.

RDS Multi-AZ DB instance uses one synchronous standby. Failover commonly takes 60 to 120 seconds, affected by database activity and recovery workload. Multi-AZ DB cluster is a distinct topology: a writer plus two reader instances using semi-synchronous flow control, where failover behavior depends on replica lag. RDS DB instance backup retention is configurable from 0 to 35 days. Multi-AZ DB clusters require 1 to 35 days. Console-created DB instances default to seven days.

ClickHouse Managed Postgres offers no-standby operation or one or two dedicated standbys for automatic failover. One asynchronous standby provides a ready failover target without waiting for its acknowledgment on each commit. Asynchronous replication leaves a data-loss window for writes that haven't reached the standby when the primary fails. A one-synchronous-standby option with a WAL listener is in preview. Two standbys use synchronous quorum replication, waiting for acknowledgment from at least one standby before a commit completes. With a configured standby, ClickHouse Managed Postgres automatically promotes a replica after primary failure. Recovery typically takes minutes. A deployment without standbys has no ready failover target. ClickHouse Managed Postgres provides point-in-time recovery through full backups and continuous WAL archiving, within a seven-day retention window.

Testing PostgreSQL failover and point-in-time recovery

ClickHouse's PostgresBench defines recovery within two minutes and zero data loss as HA targets. Those aren't measured failover results. Run a failover drill and a PITR restore test under the chosen topology before committing to production. In the Guardian's RDS incident, stale TCP connections persisted in a Hikari pool after a network failure. Explicit timeout and DNS changes improved reconnection. Failover testing must include the application connection stack.

PostgreSQL scaling, branching, and extension support

Both services manage PostgreSQL upgrades and offer extension ecosystems, but they differ in how compute and storage scale and which extensions ship by default.

RDS handles vertical instance resizing and EBS storage changes as AWS operations. Read replicas use asynchronous streaming replication for read scale-out. They aren't HA standbys. ClickHouse Managed Postgres scales vertically among 50+ instance types as its primary scaling path.

RDS extension availability varies by PostgreSQL version and is exposed through rds.extensions. pg_cron is supported on 12.5 and later. ClickHouse Managed Postgres provides 90+ extensions including PostGIS, pgvector, and pg_cron, and preinstalls pg_clickhouse (query ClickHouse from SQL) and pg_stat_ch (query telemetry). Verify exact extension versions, privileges, and upgrade behavior for the chosen PostgreSQL major version before migration.

Database branching and compute suspension

RDS creates database copies by restoring snapshots or point-in-time backups into new DB instances. ClickHouse Managed Postgres creates independent branches by restoring a base backup and replaying WAL to the selected recovery point. Each branch has its own compute configuration.

Eligible RDS DB instances support temporary stop/start, with automatic restart after seven days. ClickHouse Managed Postgres runs continuously at its provisioned size. Planned additions announced at GA include instant copy-on-write branches and clones, automatic idling, and scale-to-zero for branch and agent environments.

Vector and text retrieval through pg_clickhouse

Both services support pgvector and PostgreSQL full-text search. ClickHouse Managed Postgres also provides VectorChord and BM25 extensions.

Applications store vectors and searchable text in a separate ClickHouse service and query that datathrough PostgreSQL using pg_clickhouse. The extension pushes vector distance calculations, top-k queries, and regular-expression matching to ClickHouse. Retrieval runs on ClickHouse compute and storage while Managed Postgres continues serving transactional queries.

AWS integrations and connection pooling

RDS Proxy pools and reuses database connections and supports IAM client authentication and IAM or Secrets Manager credentials for database connections. PostgreSQL SQL-level PREPARE/EXECUTE commands pin a client session to a database connection, reducing multiplexing for that session. CloudWatch Database Insights provides database-load dashboards and SQL statistics. pg_stat_statements provides PostgreSQL statement statistics. AWS DMS handles migrations. Zero-ETL integrations to Redshift require an eligible RDS PostgreSQL DB instance, engine version, and region. IAM database authentication, VPC, security groups, CloudWatch, and EventBridge round out the integration surface.

ClickHouse Managed Postgres bundles PgBouncer for connection pooling. In transaction mode, PgBouncer tracks protocol-level prepared statements with compatible drivers, but SQL-level PREPARE and session-dependent features require a direct PostgreSQL connection. Applications using ORMs should test their driver settings with PgBouncer's transaction pooling. The service requires TLS 1.3 or later. ClickHouse Managed Postgres supports server-certificate verification. Enable verification for production connections. The console exposes CPU, memory, IOPS, and storage metrics. Query Insights ranks query patterns and displays their latency, CPU time, and errors. Searchable PostgreSQL logs and OpenMetrics endpoints support incident investigation and existing Prometheus or Grafana dashboards. The ClickHouse Cloud control plane manages provisioning.

Analytics integration: read replicas, Redshift, and ClickHouse

Both services provide read replicas and replication paths for separate analytical workloads. The choice depends on query patterns, acceptable replication lag, and the analytical destination.

RDS offers read replicas as asynchronous streaming copies that offload eligible reads. Zero-ETL to Redshift uses logical replication settings and replication slots on eligible RDS PostgreSQL DB instances. Multi-AZ DB clusters can't be sources. Slot capacity and invalidation risk need attention. DMS and third-party CDC tools serve other destinations.

ClickHouse Managed Postgres offers dedicated read replicas, which replay archived WAL asynchronously by default and provide eventually consistent read copies. For columnar analytics, ClickPipes manages an initial copy and ongoing CDC into ClickHouse. WalShadow, in private preview, decodes shipped WAL outside PostgreSQL.

Both replication methods produce eventually consistent analytical copies. ClickPipes performs source-side logical decoding, while WalShadow moves decoding off the source. WAL shipping, initial copying, and network transfer still consume source resources. The pg_clickhouse extension provides analytical query pushdown from PostgreSQL SQL into ClickHouse for supported operations. Mixed query plans keep work in PostgreSQL.

ClickPipes compute is free for replication from ClickHouse Managed Postgres, with applicable egress metered. WalShadow replication is free during its private preview. The analytics service has its own compute, storage, and transfer charges.

Comparison of EBS-backed PostgreSQL zero-ETL integration with an analytics warehouse and local NVMe PostgreSQL using CDC for independent analytics compute and storage.

Read replicas suit queries that run well in PostgreSQL with acceptable lag. Redshift zero-ETL fits eligible deployments already using Redshift. CDC to ClickHouse fits aggregations, time-series scans, and dashboards that benefit from a columnar engine while keeping analytical load off the transactional database.

RDS and ClickHouse Managed Postgres pricing models

RDS cost drivers include instance class and hours, EBS capacity, optional gp3 IOPS and throughput or provisioned IOPS storage, backup storage beyond the included allowance, and data transfer out. Stopped instances still incur storage and applicable backup charges. Price the selected Multi-AZ DB instance rate or all three billable instances in a Multi-AZ DB cluster, together with the corresponding storage and I/O charges.

ClickHouse prices Managed Postgres by organization tier, cloud provider, region, and CPU, memory, and storage configuration. Backup storage up to the provisioned disk is included. Additional backup storage is billed separately (for example, \$25.30/TB-month in us-east-1). Data transfer is billed at ClickHouse Cloud rates. On AWS, dedicated Postgres read replicas add instance charges. The separately provisioned ClickHouse analytics service adds its own compute, storage, and transfer costs. ClickHouse Managed Postgres and the analytics service use one ClickHouse Cloud console and consolidated bill.

Build a region-specific estimate including HA standbys, IOPS tier (RDS) or instance type (ClickHouse Managed Postgres), backup retention, egress, CDC resource overhead, and the separate analytics service cost. Use the AWS Pricing Calculator and ClickHouse pricing documentation for the target region, instance size, and HA topology.

Migrating from RDS PostgreSQL to ClickHouse Managed Postgres

ClickPipes supports PostgreSQL-to-PostgreSQL migration through an initial copy followed by CDC. This moves the transactional database into Managed Postgres. It doesn't require a ClickHouse analytics service. Plan the migration in six steps:

  1. Check compatibility and application dependencies. Confirm PostgreSQL versions, extensions, roles, ownership, and grants. Test TLS connections, PgBouncer behavior, and prepared statements. Identify how the application will handle any reliance on IAM authentication, RDS Proxy, AWS monitoring, DMS, or Redshift zero-ETL.
  2. Prepare the RDS source. Follow the RDS source setup guide for logical replication, migration-user privileges, table replica identity, and network access. Changing RDS logical replication from disabled to enabled requires a reboot. Replication connections must bypass RDS Proxy.
  3. Copy the schema and data. Use initial load plus CDC to copy existing rows and replicate subsequent changes. Automated schema migration requires an empty target. Customized targets and SSH-tunnel connections need manual schema import. Coordinate schema changes during replication because CDC doesn't propagate every DDL operation.
  4. Validate the target. Monitor replication lag and errors, compare source and target row counts, and test critical queries and application behavior. Matching counts alone doesn't establish that every value is correct.
  5. Cut over in a planned write pause. Once the copy is complete, stop source writes and let outstanding changes arrive. Follow the guided cutover to validate data, pause replication, reset destination sequences, and switch application connections.
  6. Verify before retiring RDS. Check application health and run a failover drill under the selected standby configuration. Define rollback before cutover: writes accepted by the new database must be reconciled before returning to RDS. Clean up migration resources once the move is confirmed.

pg_dump and pg_restore provide a one-time migration path for databases with a longer maintenance window. Rehearse the chosen method to establish the copy time, source overhead, and cutover window for the application.

Managed PostgreSQL selection checklist

Before choosing a service, confirm:

  1. Required AWS features and target region
  2. I/O profile: commit latency sensitivity, random reads, and working-set size
  3. HA topology, acknowledged-write protection, and results from failover and restore drills
  4. PostgreSQL version, extension, and application compatibility
  5. Full monthly bill: primary, standbys, storage, IOPS, backups, transfer, and any analytics service
  6. Migration method, cutover window, validation, and rollback plan

Frequently asked questions

Does migration from RDS PostgreSQL to ClickHouse Managed Postgres require downtime?

ClickPipes copies existing data and replicates ongoing changes while the application continues using RDS. The guided cutover requires a write pause for final synchronization, validation, sequence reset, and the connection switch. Rehearse the migration to estimate that window.

How does ClickHouse Managed Postgres recover from a host failure?

With a configured standby, ClickHouse Managed Postgres automatically promotes a replica after primary failure. Asynchronous replication leaves a data-loss window for writes that haven't reached the standby when the primary fails. A deployment without standbys has no ready failover target. Host-loss recovery uses backups and archived WAL. Choose the HA topology according to acceptable data loss and recovery time.

Does migrating from RDS PostgreSQL require application code changes?

Incompatible extensions, privilege assumptions, connection pooling, or AWS integrations require application or configuration changes. Test prepared statements and session behavior with PgBouncer, and plan for dependencies like IAM authentication and RDS Proxy before cutover.

Can ClickHouse Managed Postgres replace RDS in any AWS region?

No. ClickHouse Managed Postgres is available in supported regions and instance configurations. Check the target deployment in the ClickHouse pricing calculator before planning a move.

Does ClickHouse Managed Postgres require a ClickHouse analytics service?

No. Managed Postgres runs transactional PostgreSQL workloads on its own. A ClickHouse analytics service is optional, separately provisioned, and billed independently.

Does ClickHouse Managed Postgres support branching and scale-to-zero?

ClickHouse Managed Postgres creates independent branches from backups and archived WAL. Instant copy-on-write branching, automatic idling, and scale-to-zero for branch and agent environments are planned, as announced at GA. The current provisioned service runs continuously.

How does pg_clickhouse separate retrieval from transactional PostgreSQL?

Applications keep vectors and searchable text in ClickHouse and access them through PostgreSQL connections. pg_clickhouse sends vector distance calculations, top-k queries, and regular-expression matching to ClickHouse. ClickHouse executes retrieval while Managed Postgres continues serving transactions.

Top comments (0)