aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2021-01-30 00:00:27 -0800
committerNoah Misch <noah@leadboat.com>2021-01-30 00:02:08 -0800
commitd1ab4bf6ed2d5d5026e13af510d0d3b025fa6ac9 (patch)
tree06806818465e33354cacc3efb09102460533d050 /src/backend/executor
parent289ef386dff6662b1c1cf90d0666a3863bcf5ba8 (diff)
downloadpostgresql-d1ab4bf6ed2d5d5026e13af510d0d3b025fa6ac9.tar.gz
postgresql-d1ab4bf6ed2d5d5026e13af510d0d3b025fa6ac9.zip
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
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions