Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to specify lock_timeout per pool? #842

Open
daicoden opened this issue Oct 30, 2024 · 1 comment
Open

Is there a way to specify lock_timeout per pool? #842

daicoden opened this issue Oct 30, 2024 · 1 comment

Comments

@daicoden
Copy link

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.

@magec
Copy link
Collaborator

magec commented Nov 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants