postgresql/src
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
..
backend Invalidate binary search bounds consistently. 2019-04-04 09:38:08 -07:00
bin Remove now-unnecessary thread pointer arguments in pgbench. 2019-04-03 17:16:09 -04:00
common Add support for partial TOAST decompression 2019-04-02 12:35:32 -04:00
fe_utils Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
include Move the be_gssapi_get_* prototypes 2019-04-04 11:11:46 -04:00
interfaces GSSAPI encryption support 2019-04-03 15:02:33 -04:00
makefiles Handle USE_MODULE_DB for all tests able to use an installed postmaster. 2019-04-03 17:06:01 -07:00
pl Generated columns 2019-03-30 08:15:57 +01:00
port Assert that pgwin32_signal_initialize() has been called early enough. 2019-04-03 17:11:16 -07:00
template Yet further rethinking of build changes for macOS Mojave. 2018-11-02 18:54:00 -04:00
test Make src/test/recovery/t/017_shm.pl safe for concurrent execution. 2019-04-03 23:16:37 -07:00
timezone More unconstify use 2019-02-13 11:50:16 +01:00
tools Refactor the fsync queue for wider use. 2019-04-04 23:38:38 +13:00
tutorial SQL comment: remove extra word in heading comment 2019-01-25 18:57:21 -05:00
.gitignore
DEVELOPERS
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Handle USE_MODULE_DB for all tests able to use an installed postmaster. 2019-04-03 17:06:01 -07:00
Makefile.shlib Ensure static libraries have correct mod time even if ranlib messes it up. 2018-11-29 15:53:44 -05:00
nls-global.mk Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00