Boss: queue worker
A job queue: many workers must each claim a different job. SKIP LOCKED passes over rows another worker holds.
task
Claim the oldest unclaimed job with SKIP LOCKED and mark it claimed, returning its id, in one statement.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
A job queue: many workers must each claim a different job. SKIP LOCKED passes over rows another worker holds.
Claim the oldest unclaimed job with SKIP LOCKED and mark it claimed, returning its id, in one statement.