In PostgreSQL, how can you acquire an exclusive lock on a table to prevent other transactions from reading or writing to it? - Study24x7
Social learning Network
4 followers study24x7 16 Oct 2024 11:35 AM study24x7 study24x7

In PostgreSQL, how can you acquire an exclusive lock on a table to prevent other transactions from reading or writing to it?

A

LOCK TABLE table_name IN EXCLUSIVE MODE

B

EXCLUSIVE LOCK ON table_name

C

SET LOCK table_name EXCLUSIVE

D

LOCK table_name EXCLUSIVE

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles