db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

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.

hints