마이그레이션 시리즈

Migrate RDS Postgres to ClickHouse Managed Postgres

Migrate transactions and route analytics to ClickHouse.

Migrate a live e-commerce workload from AWS RDS Postgres to ClickHouse Managed Postgres. Stream an analytical copy with ClickPipes, route existing dashboard SQL through pg_clickhouse, inspect pushdown, and measure the result.

4–6 hoursAdvanced8 modules
Partner Only
PostgresManaged PostgresClickPipesMigration

Why migrate this workload?

Increase transactional capacity and give analytical queries their own engine. This workshop shows you how to migrate, verify, and measure both workloads.

More capacity for transactions

PostgresBench reports higher transaction throughput for ClickHouse Managed Postgres at the same vCPU and memory allocation. Use the results below to evaluate the opportunity.

Keep your Postgres interface

Move the writer to Managed Postgres with the same role names and passwords. Route existing dashboard SQL through pg_clickhouse, then tune queries where needed.

Separate analytics from transactions

Stream an analytical copy into ClickHouse with ClickPipes. Run dashboard queries there while the application writes to local Postgres tables, and measure throughput under concurrent load.

PostgresBench

More transactions. Lower transaction latency.

Published PostgresBench results compare the pgbench TPC-B-like workload on AWS RDS and ClickHouse Managed Postgres.

3.6×

The transaction throughput

About 100 GB · compared with AWS RDS

5.2×

The transaction throughput

About 500 GB · compared with AWS RDS

81%

Lower average transaction latency

About 500 GB · compared with AWS RDS

16 vCPU · 64 GB RAM · AWS us-east-2 · no HA · highest-TPS run per service
DatasetAWS RDS
transactions/s
Managed Postgres
transactions/s
AWS RDS
average latency
Managed Postgres
average latency
About 100 GB8,06628,66831.71 ms8.91 ms
About 500 GB5,07826,32850.45 ms9.70 ms

These tests use matching vCPU and memory allocations, with different primary storage. They measure transactional performance, not dashboard query speed. Results vary by workload; measure your migration in the workshop.

Test configuration and result selection
  • Both services: 16 vCPU, 64 GB RAM, AWS us-east-2, Postgres 18.3, and high availability disabled.
  • pgbench TPC-B-like workload: 256 clients, 16 threads, prepared queries, and three 600-second runs.
  • Each comparison uses the highest-TPS run for each service. Average latency comes from that same run.
  • Scale factors: 6,849 (about 100 GB) and 34,247 (about 500 GB). TPS and latency are rounded for display.
  • Managed Postgres: m8gd.4xlarge with NVMe primary storage. RDS: db.m8gd.4xlarge with 1,000 GB gp3 primary storage at 16,000 IOPS.
  • Managed Postgres results recorded Mar 17–18, 2026; RDS results recorded Jul 9, 2026. Results checked Oct 6, 2026.

What you will do

8 modules, in order

  1. 00

    Prepare accounts, tools, credentials, and Terraform variables before provisioning.

  2. 01

    Provision RDS, seed the shop database, and measure writer throughput with and without analytical load.

  3. 02

    Write a cutover runbook with replication scope, verification, sequence handling, abort criteria, and rollback limits.

  4. 03

    Replicate RDS data into Managed Postgres, verify grants and lag, and test pause and recovery.

  5. 04

    Stop writes, verify catch-up, reset sequences, move connections, reconcile data, and remove the migration pipe.

  6. 05

    Copy Managed Postgres data into ClickHouse with CDC and choose engines and ordering keys.

  7. 06

    Route analytical queries through pg_clickhouse, inspect pushdown, optimize queries, and measure the combined migration result.

  8. 07

    Check your understanding with fourteen questions, then delete the workshop resources.

KO