aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2019-10-23 15:05:09 +0900
committerMichael Paquier <michael@paquier.xyz>2019-10-23 15:05:09 +0900
commit7668d48477edc3bc8d6990ac3d3bd79e327e2719 (patch)
treeb4befdefccc2e61ab1c0171ccccc29bb82ff2fac /contrib/postgres_fdw/postgres_fdw.c
parenta6a95d4f382b67bc80b63e4769dfb240bafd9aa7 (diff)
downloadpostgresql-7668d48477edc3bc8d6990ac3d3bd79e327e2719.tar.gz
postgresql-7668d48477edc3bc8d6990ac3d3bd79e327e2719.zip
Acquire properly session-level lock on new index in REINDEX CONCURRENTLY
In the first transaction run for REINDEX CONCURRENTLY, a thinko in the existing logic caused two session locks to be taken on the old index, causing the session lock on the newly-created index to be missed. This made possible concurrent DDL commands (like ALTER INDEX) on the new index while REINDEX CONCURRENTLY was processing from the point where the first internal transaction committed. This issue has been discovered while digging into another bug. Author: Michael Paquier Discussion: https://postgr.es/m/20191021074323.GB1869@paquier.xyz Backpatch-through: 12
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions