Abort long-running statements automatically.
Section: Transactions, Savepoints, and Locking
Set statement timeout
sql
sql
SET statement_timeout = '5s';Explanation
See summary for usage details.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Transactions, Savepoints, and Locking