cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout settings for Postgresql external catalog connection?

ErikApption
New Contributor II

Is there any way to configure timeouts for external catalog connections? We are getting some timeouts with complex queries accessing a pgsql database through the catalog. We tried configuring the connection and we got this error

  │ Error: cannot update connection: CONNECTION/CONNECTION_POSTGRESQL does not support the following option(s): connectTimeout. Supported options: host,port,user,password.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Alberto_Umana
Databricks Employee
Databricks Employee

Hello @ErikApption,

there is no direct support for a connectTimeout option in the connection settings through Unity Catalog as of now. You might need to explore these alternative timeout configurations or consider adjusting your database handling to manage complex queries more efficiently.

You can set the statement_timeout parameter for your queries. This can be done in PostgreSQL by setting it through SQL commands:

SET statement_timeout TO '5min';

View solution in original post

1 REPLY 1

Alberto_Umana
Databricks Employee
Databricks Employee

Hello @ErikApption,

there is no direct support for a connectTimeout option in the connection settings through Unity Catalog as of now. You might need to explore these alternative timeout configurations or consider adjusting your database handling to manage complex queries more efficiently.

You can set the statement_timeout parameter for your queries. This can be done in PostgreSQL by setting it through SQL commands:

SET statement_timeout TO '5min';

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group