]> granicus.if.org Git - postgresql/commit
Cope with heap_fetch failure while locking an update chain
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 27 Nov 2013 20:45:25 +0000 (17:45 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 28 Nov 2013 14:54:25 +0000 (11:54 -0300)
commitfbface6f946242571f4acbfa9a74727c073748ba
treeeb1347ceecf3429ff73c5908d238259377dae1bd
parent19ffa951e6ede713fc1298c1d7a53f1eab3958c4
Cope with heap_fetch failure while locking an update chain

The reason for the fetch failure is that the tuple was removed because
it was dead; so the failure is innocuous and can be ignored.  Moreover,
there's no need for further work and we can return success to the caller
immediately.  EvalPlanQualFetch is doing something very similar to this
already.

Report and test case from Andres Freund in
20131124000203.GA4403@alap2.anarazel.de
src/backend/access/heap/heapam.c