]> granicus.if.org Git - postgresql/commit
Prevent index-only scans from returning wrong answers under Hot Standby.
authorRobert Haas <rhaas@postgresql.org>
Fri, 27 Apr 2012 00:00:21 +0000 (20:00 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 27 Apr 2012 00:00:21 +0000 (20:00 -0400)
commit3424bff90f40532527b9cf4f2ad9eaff750682f7
tree028c10eea2a93f672d9462ebb4dcef7097d316ca
parent92df2203437603d40417fe711c3cb7066ac4fdf5
Prevent index-only scans from returning wrong answers under Hot Standby.

The alternative of disallowing index-only scans in HS operation was
discussed, but the consensus was that it was better to treat marking
a page all-visible as a recovery conflict for snapshots that could still
fail to see XIDs on that page.  We may in the future try to soften this,
so that we simply force index scans to do heap fetches in cases where
this may be an issue, rather than throwing a hard conflict.
src/backend/access/heap/heapam.c
src/backend/access/heap/visibilitymap.c
src/backend/commands/vacuumlazy.c
src/include/access/heapam.h
src/include/access/htup.h
src/include/access/visibilitymap.h
src/include/access/xlog_internal.h