pgcat icon indicating copy to clipboard operation
pgcat copied to clipboard

Is there a way to specify lock_timeout per pool?

Open daicoden opened this issue 1 year ago • 1 comments
trafficstars

When PG Cat is in transaction mode there's no way to set a lock_timeout on the client connection.

We want to set a lock_timeout for all connections for various pools without having to put the lock_timeout in the postgres.conf. It seems like this should be a way to specific the psql connection options per pool.

daicoden avatar Oct 30 '24 01:10 daicoden

There is not way to set these parameters using pgcat pool configuration. The only way you could do this is by using session pooling and execute SET commands on the session preparation. If you use transactional pooling, session altering parameters are cleaned up using a RESET ALL when the connection is returned to the pool.

magec avatar Nov 06 '24 09:11 magec