Hi Dave,
Thanks for digging up the 2012 thread. Michael Malis reported the same
problem[1], together with CREATE INDEX and hash indexes. I
posted patches there and 0002 does your option 1. After a
rewrite it logs a snapshot conflict at the OldestXmin the rewrite used,
so the standby query is canceled instead of missing rows.
Your review there would be very welcome, and your script would be a
good cross-check.
[1]https://postgr.es/m/CAGRkXqQk=DXKyhFW9piKN=7hL5UdVrxagxfO+zjE-DwRAx0a7Q@mail.gmail.com
Thanks,
Shihao