postgresql/src
Noah Misch d683d6528d Fix CREATE INDEX CONCURRENTLY for simultaneous prepared transactions.
In a cluster having used CREATE INDEX CONCURRENTLY while having enabled
prepared transactions, queries that use the resulting index can silently
fail to find rows.  Fix this for future CREATE INDEX CONCURRENTLY by
making it wait for prepared transactions like it waits for ordinary
transactions.  This expands the VirtualTransactionId structure domain to
admit prepared transactions.  It may be necessary to reindex to recover
from past occurrences.  Back-patch to 9.5 (all supported versions).

Andrey Borodin, reviewed (in earlier versions) by Tom Lane and Michael
Paquier.

Discussion: https://postgr.es/m/2E712143-97F7-4890-B470-4A35142ABC82@yandex-team.ru
2021-01-30 00:04:05 -08:00
..
backend Fix CREATE INDEX CONCURRENTLY for simultaneous prepared transactions. 2021-01-30 00:04:05 -08:00
bin pgbench: Remove dead code 2021-01-28 12:50:40 -03:00
common Replace use of sys_siglist[] with strsignal(). 2020-07-15 22:05:13 -04:00
fe_utils
include Fix CREATE INDEX CONCURRENTLY for simultaneous prepared transactions. 2021-01-30 00:04:05 -08:00
interfaces Make ecpg's rjulmdy() and rmdyjul() agree with their declarations. 2021-01-28 11:17:47 -05:00
makefiles
pl Translation updates 2020-11-09 12:47:52 +01:00
port Stamp 9.6.20. 2020-11-09 17:32:22 -05:00
template Further tweaking of PG_SYSROOT heuristics for macOS. 2021-01-20 12:07:52 -05:00
test Fix CREATE INDEX CONCURRENTLY for simultaneous prepared transactions. 2021-01-30 00:04:05 -08:00
timezone Update time zone data files to tzdata release 2021a. 2021-01-24 16:29:48 -05:00
tools Sync our copy of the timezone library with IANA release tzcode2020c. 2020-10-16 21:40:16 -04:00
tutorial
.gitignore
bcc32.mak
DEVELOPERS
Makefile
Makefile.global.in
Makefile.shlib
nls-global.mk
win32.mak