aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-04-25 16:58:10 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-04-25 16:58:10 -0400
commit9e859a9150cabd44e91ed80a90d45223b1e3986e (patch)
treeaf2f8a9a653a1d92ad43e516c1a8f6af8853c17f /src/backend/access/gist/gistscan.c
parent719845b5a76477ab28ee12633c7ea07f777649d9 (diff)
downloadpostgresql-9e859a9150cabd44e91ed80a90d45223b1e3986e.tar.gz
postgresql-9e859a9150cabd44e91ed80a90d45223b1e3986e.zip
Avoid deadlock between concurrent CREATE INDEX CONCURRENTLY commands.
There was a high probability of two or more concurrent C.I.C. commands deadlocking just before completion, because each would wait for the others to release their reference snapshots. Fix by releasing the snapshot before waiting for other snapshots to go away. Per report from Paul Hinze. Back-patch to all active branches.
Diffstat (limited to 'src/backend/access/gist/gistscan.c')
0 files changed, 0 insertions, 0 deletions