-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Documented lock_timeout in client.mdx #3199
Conversation
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
Thank you! |
Don't mention it. By the way I also took a few notes while experimenting with timeouts and their interaction with connection failures (simulated trough firewall techniques) that, from my perspective, include some details that could be worth to mention in node-postgres documentation. As is, they contain even text from official PostgreSQL documentation (that is pointless to duplicate here) but there are some application development nuances that, at least for me, would have been so useful If I had found them there at first instance. If you agree, I could try to incorporate that knowledge into the current documentation in a way that does not excessively bloat it. Just in case you're curious I paste below those notes (translated by ChatGPT since they weren't originally in english, but after a small glance they don't look so bad):
|
oh yeah that's amazing!! thank you! |
I have not forgotten (I just haven't found the time yet). But after comming back to the main task I found what I think are a few issues. Many of them may be already reported (I took a look to them, but they are a lot...) Well, to the point: I implemented a wrapper over node-postgres, initially meant to investigate/lern but it finally became a solution for us. Now I tidied it a bit and published at github/npm. I wish it could help others with same issues, and, specially, that it could serve to reason about them so that, at some point, I could try to port them back as PRs with real changes (If I figure out how to get the time... 🥲) But it's a lot of work so, for now, here it is to whoum could be interested: |
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