aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-05-08 14:15:01 +0200
committerPeter Eisentraut <peter@eisentraut.org>2019-05-08 14:30:23 +0200
commitadd85ead4ab969c1e31d64f4476c2335856f4aa9 (patch)
treef6875e94d7a427a372c2f0b2e862d342121bc85c /contrib/postgres_fdw/postgres_fdw.c
parent8efe710d9c84502b3e6a9487937bccf881f56d9c (diff)
downloadpostgresql-add85ead4ab969c1e31d64f4476c2335856f4aa9.tar.gz
postgresql-add85ead4ab969c1e31d64f4476c2335856f4aa9.zip
Fix table lock levels for REINDEX INDEX CONCURRENTLY
REINDEX CONCURRENTLY locks tables with ShareUpdateExclusiveLock rather than the ShareLock used by a plain REINDEX. However, RangeVarCallbackForReindexIndex() was not updated for that and still used the ShareLock only. This would lead to lock upgrades later, leading to possible deadlocks. Reported-by: Andres Freund <andres@anarazel.de> Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/20190430151735.wi52sxjvxsjvaxxt%40alap3.anarazel.de
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions