Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Misch2021-01-30 08:00:27 +0000
committerNoah Misch2021-01-30 08:04:05 +0000
commitd683d6528dba56669f24e5fac85c7692fc9ffd43 (patch)
tree785f53555d920df1aacb1c6ce96dd6e1a5ca3790 /src/backend/regex
parentea3164aae4b2d2edfb1dc3bd450bfed86d3266ea (diff)
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/regex')
0 files changed, 0 insertions, 0 deletions