summaryrefslogtreecommitdiff
path: root/src/tools/make_diff/difforig
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-04-18 12:07:38 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-04-18 12:07:38 -0400
commit7490ce725edd5b46f14fa8a449a97c9487c1d143 (patch)
treef57def9bd167ad02acb963bc714bcb15c4aa7908 /src/tools/make_diff/difforig
parent92b503c48d9d98657c59fe630f44b80efaab87de (diff)
Better fix for deadlock hazard in CREATE INDEX CONCURRENTLY.
Commit 54eff5311 did not account for the possibility that we'd have a transaction snapshot due to default_transaction_isolation being set high enough to require one. The transaction snapshot is enough to hold back our advertised xmin and thus risk deadlock anyway. The only way to get rid of that snap is to start a new transaction, so let's do that instead. Also throw in an assert checking that we really have gotten to a state where no xmin is being advertised. Back-patch to 9.4, like the previous commit. Discussion: https://postgr.es/m/CAMkU=1ztk3TpQdcUNbxq93pc80FrXUjpDWLGMeVBDx71GHNwZQ@mail.gmail.com
Diffstat (limited to 'src/tools/make_diff/difforig')
0 files changed, 0 insertions, 0 deletions