{"version": 2, "width": 100, "height": 28, "timestamp": 1791046553, "env": {"SHELL": "/bin/bash", "TERM": "xterm-256color"}}
[0.0262, "o", "\u001b[H\u001b[2J\u001b[3J"]
[0.036041, "o", "\u001b[1;32m$\u001b[0m \u001b[1mchlift migrate status\u001b[0m\r\n"]
[3.578187, "o", "mirror chlift_demo: RUNNING, 56000 rows synced by CDC, replication slot holds 0 MB of WAL\r\n  public.user_events     postgres ~8000104  node-a 8053000  node-b 8053000\r\n  public.request_logs    postgres ~4000025  node-a 4001000  node-b 4001000\r\n  public.system_logs     postgres ~1996465  node-a 2002000  node-b 2002000\r\n"]
[3.597097, "o", "\u001b[1;32m$\u001b[0m \u001b[1mtime chlift migrate cutover\u001b[0m\r\n"]
[5.493458, "o", "cutover: watermark 0/E659C2C0; waiting for PeerDB to confirm it"]
[5.494289, "o", "\r\n"]
[96.379252, "o", "checksum public.user_events: 64 buckets x 6 columns (count, id, account_id, user_id, event_time, kind), 0 differ"]
[96.380589, "o", "\r\n"]
[105.698148, "o", "checksum public.request_logs: 64 buckets x 9 columns (count, id, account_id, created_at, method, path, status, duration_ms, user_agent), 0 differ\r\n"]
[110.823525, "o", "checksum public.system_logs: 64 buckets x 6 columns (count, id, logged_at, level, service, message), 0 differ\r\ncutover: Postgres and every replica agree (day counts and PK-range checksums)\r\n"]
[116.542921, "o", "cutover done: mirror stopped, slot and publication dropped; ClickHouse database chlift keeps the data. Postgres tables are untouched (archive or drop them when you are ready)\r\n"]
[116.557284, "o", "\r\nreal\t1m51.951s\r\nuser\t0m0.257s\r\nsys\t0m0.359s\r\n"]
[116.557892, "o", "\u001b[1;32m$\u001b[0m \u001b[1mpsql -c \"SELECT count(*) AS replication_slots FROM pg_replication_slots\" -c \"SELECT count(*) AS publications FROM pg_publication\"\u001b[0m\r\n"]
[117.774519, "o", " replication_slots \r\n-------------------"]
[117.775487, "o", "\r\n                 1\r\n(1 row)\r\n\r\n publications \r\n--------------\r\n            1\r\n(1 row)\r\n\r\n"]
[117.790503, "o", "\u001b[1;32m$\u001b[0m \u001b[1mchlift migrate check\u001b[0m\r\n"]
[147.62253, "o", "ok   public.user_events: postgres 8047000 rows; replicas map[node-a:8047000 node-b:8047000] \r\nok   public.request_logs: postgres 4000000 rows; replicas map[node-a:4000000 node-b:4000000] \r\nok   public.system_logs: postgres 1998000 rows; replicas map[node-a:1998000 node-b:1998000] \r\n"]
