postgresql/src/backend/access
Peter Geoghegan 74eb2176bf Invalidate binary search bounds consistently.
_bt_check_unique() failed to invalidate binary search bounds in the
event of a live conflict following commit e5adcb78.  This resulted in
problems after waiting for the conflicting xact to commit or abort.  The
subsequent call to _bt_check_unique() would restore the initial binary
search bounds, rather than starting a new search.  Fix by explicitly
invalidating bounds when it becomes clear that there is a live conflict
that insertion will have to wait to resolve.

Ashutosh Sharma, with a few additional tweaks by me.

Author: Ashutosh Sharma
Reported-By: Ashutosh Sharma
Diagnosed-By: Ashutosh Sharma
Discussion: https://postgr.es/m/CAE9k0PnQp-qr-UYKMSCzdC2FBzdE4wKP41hZrZvvP26dKLonLg@mail.gmail.com
2019-04-04 09:38:08 -07:00
..
brin Report progress of CREATE INDEX operations 2019-04-02 15:18:08 -03:00
common Generated columns 2019-03-30 08:15:57 +01:00
gin Generate less WAL during GiST, GIN and SP-GiST index build. 2019-04-03 17:03:15 +03:00
gist Generate less WAL during GiST, GIN and SP-GiST index build. 2019-04-03 17:03:15 +03:00
hash Report progress of CREATE INDEX operations 2019-04-02 15:18:08 -03:00
heap Correctly initialize newly added struct member 2019-04-03 09:58:47 -03:00
index Compute XID horizon for page level index vacuum on primary. 2019-03-26 16:52:54 -07:00
nbtree Invalidate binary search bounds consistently. 2019-04-04 09:38:08 -07:00
rmgrdesc Generate less WAL during GiST, GIN and SP-GiST index build. 2019-04-03 17:03:15 +03:00
spgist Generate less WAL during GiST, GIN and SP-GiST index build. 2019-04-03 17:03:15 +03:00
table tableam: bitmap table scan. 2019-03-31 18:37:57 -07:00
tablesample tableam: sample scan. 2019-03-31 18:37:57 -07:00
transam Refactor the fsync queue for wider use. 2019-04-04 23:38:38 +13:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00