PostgreSQL Lock Conflicts
Database engineering course
|
@hnasr
|
☕
ShareRowExclusiveLock
The ShareRowExclusiveLock lock is a Table lock. This list shows the commands that acquire ShareRowExclusiveLock and what locks conflicts with it.
The following commands acquire ShareRowExclusiveLock Table lock
CREATE TRIGGER
ALTER TABLE ENABLE/DISABLE TRIGGER
ALTER TABLE ADD FOREIGN KEY NOT VALID (PARENT)
ALTER TABLE ADD FOREIGN KEY NOT VALID (CHILD)
ALTER TABLE ADD FOREIGN KEY (CHILD)
The following are table locks conflicting with ShareRowExclusiveLock
RowExclusiveLock
ShareUpdateExclusiveLock
ShareLock
ShareRowExclusiveLock
ExclusiveLock
AccessExclusiveLock