Skip to content

Commit c3bd279

Browse files
authoredApr 30, 2024··
Documented lock_timeout in client.mdx (#3199)
Added 'lock_timeout' option in Config object documentation since it's explicitly declared in node-postgres (packages/pg/lib/connection-parameters.js) I also checked it works as documented in PostgreSQL Docs: https://www.postgresql.org/docs/current/runtime-config-client.html#GUC-LOCK-TIMEOUT
1 parent 3cde785 commit c3bd279

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎docs/pages/apis/client.mdx

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ type Config = {
2020
types?: any, // custom type parsers
2121
statement_timeout?: number, // number of milliseconds before a statement in query will time out, default is no timeout
2222
query_timeout?: number, // number of milliseconds before a query call will timeout, default is no timeout
23+
lock_timeout?: number, // number of milliseconds a query is allowed to be en lock state before it's cancelled due to lock timeout
2324
application_name?: string, // The name of the application that created this Client instance
2425
connectionTimeoutMillis?: number, // number of milliseconds to wait for connection, default is no timeout
2526
idle_in_transaction_session_timeout?: number // number of milliseconds before terminating any session with an open idle transaction, default is no timeout

0 commit comments

Comments
 (0)
Please sign in to comment.