PostgreSQL Lock Conflicts
Database engineering course
|
@hnasr
|
☕
ShareUpdateExclusiveLock
The ShareUpdateExclusiveLock lock is a Table lock. This list shows the commands that acquire ShareUpdateExclusiveLock and what locks conflicts with it.
The following commands acquire ShareUpdateExclusiveLock Table lock
VACUUM
REINDEX CONCURRENTLY
DROP INDEX CONCURRENTLY
CREATE STATISTICS
CREATE INDEX CONCURRENTLY
COMMENT ON
ANALYZE
ALTER TABLE VALIDATE CONSTRAINT
ALTER TABLE SET WITHOUT CLUSTER
ALTER TABLE SET TOAST
ALTER TABLE SET STATISTICS
ALTER TABLE SET N_DISTINCT
ALTER TABLE SET FILLFACTOR
ALTER TABLE SET AUTOVACUUUM
ALTER TABLE DETACH PARTITION CONCURRENTLY (PARENT)
ALTER TABLE CLUSTER ON
ALTER TABLE ATTACH PARTITION (PARENT)
ALTER INDEX (RENAME)
The following are table locks conflicting with ShareUpdateExclusiveLock
ShareUpdateExclusiveLock
ShareLock
ShareRowExclusiveLock
ExclusiveLock
AccessExclusiveLock