Doug Whitfield

Doug Whitfield at

ultimately, the issue is that there is an epoll that doesn't get closed. I don't know enough about system calls though to understand why that epoll gets closed when using systemctl, but not when you use sudo -u postgres.

If you are curious, this is the reported issue: https://github.com/zalando/patroni/issues/1733