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

Reconnect or throw exception if close connection #47

Open
olegbaturin opened this issue Oct 28, 2021 · 0 comments
Open

Reconnect or throw exception if close connection #47

olegbaturin opened this issue Oct 28, 2021 · 0 comments

Comments

@olegbaturin
Copy link

olegbaturin commented Oct 28, 2021

Auto reconnect or throw an exception if connection closed for listen() method.

To close connection

  1. select * from pg_stat_activity where datname = 'db'
  2. select pg_terminate_backend(pid) - get pid from 1.
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

1 participant