Locks
FOR UPDATE locks the rows a query returns until the transaction ends. pg_locks lists the locks your session holds.
task
Lock order 1 with FOR UPDATE, then ask pg_locks for the lock mode your backend holds on orders.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
FOR UPDATE locks the rows a query returns until the transaction ends. pg_locks lists the locks your session holds.
Lock order 1 with FOR UPDATE, then ask pg_locks for the lock mode your backend holds on orders.