Skip to content

Glossary: PostgreSQL Beyond the Basics

lock_timeout

The longest a statement waits for a lock before giving up with an error. Set it in every migration so a waiting ALTER TABLE doesn't block everyone.

Where the book teaches it

Related terms

Lock modes, lock queue