Postgres migrationClickHouse Workshops

03 Replicate — instructor notes

Teaching steps, verification checks, and recovery guidance for module 03.

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

Allow 45 to 60 minutes of active work. Use the learner module for commands.

Demonstrate the migration flow

Open the Managed Postgres service and use Data sources to start the migration. Confirm the target region and explain that ClickPipes connects inbound to RDS from its own egress addresses. Use the learner page's commands to update subscriber_cidrs.

Create the two target roles with the source passwords. Apply grants after the pipe creates the target tables. Keep the target database empty when using automated schema migration. An SSH tunnel requires manual schema migration.

Monitor the initial load

Check per-table progress in the console and slot progress on RDS. Verify the publication includes exactly the four workshop tables. Record initial-load duration and steady-state lag; do not promise a fixed completion time. Use the wait for runbook review or the engine and ordering-key discussion from module 05.

Run pause and recovery together

  1. Confirm every participant's initial load has finished.
  2. Pause the pipe and record confirmed_flush_lsn, retained WAL, and free storage.
  3. Watch WAL grow while the writer continues.
  4. Resume the pipe and confirm that lag decreases.

Monitor available storage throughout. Resume before any break. Use Resume for this exercise; deleting and recreating the pipe requires another initial load.

Common failures

SymptomAction
Connection timeoutCheck the source endpoint, service region, and ClickPipes egress allowlist
No replication progressVerify wal_level, replication privileges, and source reachability
Manual schema dump failsCheck pg_dump against the source server version
Target grant checks return falseApply grants after schema creation
Retry cannot create a slotInspect and remove inactive slots from abandoned workshop attempts

End checkpoint

Confirm the initial load is complete, lag is stable, all four grant checks pass, and pause and recovery succeeded. Keep the writer on RDS. Module 04 executes the cutover.

Trên trang này

VI