June 2024
Intermediate to advanced
456 pages
11h 34m
English
In this section, you’ll use psql to analyze connections. Connections may be viewed in PgHero.[277]
Besides exhausting connections, you may run into other types of connection-related errors:
To minimize the effects of those errors, you’ll add the following safeguards:
A statement_timeout that sets a max allowed amount of time for statements to run
A lock_timeout that sets a max allowed time a statement can wait to acquire a lock
A idle_in_transaction_session_timeout[278] that sets a max allowed time for idle connections that have started a transaction, but have not committed, to run for before they’re canceled
These are all parameters ...
Read now
Unlock full access