4 ms·
Different DBs implement locks differently. Postgres allows obtaining advisory locks at either the session _or_ transaction level. If it's session-level, then y
by joatmon-snoo 2y ago
Different DBs implement locks differently.
Postgres allows obtaining advisory locks at either the session _or_ transaction level. If it's session-level, then you have, ergo, a connection-level lock.
https://www.postgresql.org/docs/current/explicit-locking.html https://www.postgresql.org/docs/current/explicit-locking.htm...