0

I need to terminate queries by

select pg_terminate_backend(pid);

which work in another session.

How can I send notify or message for that user in another session? So I dont want, that user see an error. P.s. I know some information about this users, client_addr and user_name and maybe client_hostname.

3
  • 1
    If you kill a database session, the client will get an error. That is unavoidable. Commented Dec 13, 2021 at 9:00
  • Maybe I can send additional notify? Commented Dec 13, 2021 at 9:04
  • 2
    If somebody listens, sure. Commented Dec 13, 2021 at 9:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.