Postgres migrationClickHouse Workshops

RDS Postgres to ClickHouse Managed Postgres

Move a live e-commerce workload off AWS RDS Postgres, stream its analytical copy into ClickHouse, and route the dashboard's unchanged SQL to it.

Your computer
macOS terminal: Run workshop commands in Terminal using zsh or bash.

Four to six hours. You start with one RDS Postgres instance serving both a checkout path and an operations dashboard, and finish with the transactional workload on ClickHouse Managed Postgres, the analytical workload on ClickHouse, and a dashboard routed through pg_clickhouse. Routing preserves the existing SQL; the pushdown exercise may require query edits.

Modules

Change data capture (CDC) keeps a destination updated as source rows change. The workshop separates online transaction processing (OLTP) from online analytical processing (OLAP).

ModuleTimeLearnerInstructorDone when
0030-45 minSetupInstructor notesTooling verified on your platform
0145-60 minSource environment and baselineInstructor noteswal_level is logical, the seed has finished, and results/before.json exists
0230-45 minPlan the cutoverInstructor notesrunbook/cutover.md has no TODO left in it
0345-60 minReplicateInstructor notesThe migration pipe's initial load is complete, its slot has stopped falling behind, and the failure injection has been run and repaired
0435-50 minCut overInstructor notesThe writer commits against Managed Postgres, sequences match, reconciliation passes, no slot remains on RDS
0530-45 minStream the analytical copyInstructor notesThe ClickPipe's initial load is complete and CDC is caught up
0645-60 minRoute the OLAP workloadInstructor notesEXPLAIN shows a Foreign Scan for the analytics role and a local plan for the writer, the pushdown repair is done, and results/after.json exists
0735-45 minValidate and tear downInstructor notesThe quiz is submitted and nothing is left running in either account

Work through module 02 while the seed from module 01 finishes. Return to module 01 for baseline measurements after seed completion.

This workshop provisions real AWS infrastructure in your own account. Module 00 states the expected cost and module 07 ends with teardown.

本页内容

ZH