The main difference between multiversion and lock models is that
in MVCC locks acquired for querying (reading) data don't conflict
- with locks acquired for writing data and so reading never blocks
+ with locks acquired for writing data, and so reading never blocks
writing and writing never blocks reading.
Acquired by SELECT FOR UPDATE
and LOCK TABLE
- for statements.
+ statements.
Acquired by UPDATE, DELETE,
INSERT and LOCK TABLE
- for statements.
+ statements.
Acquired by VACUUM (without )
- and LOCK TABLE table
- for
+ and LOCK TABLE
+
statements.
Acquired by CREATE INDEX
- and LOCK TABLE table
- for
+ and LOCK TABLE
+
statements.
- Acquired by LOCK TABLE for
+ Acquired by LOCK TABLE
statements.
- Acquired by LOCK TABLE table
- for statements.
+ Acquired by LOCK TABLE
+ statements.
Acquired by ALTER TABLE,
DROP TABLE,
VACUUM FULL and LOCK TABLE
- statements.
+ (or plain
+ LOCK TABLE) statements.