Option on `postgres` CLI to shutdown when there are no more active connections?

2025-10-12 Thread David Barsky
Hiya folks, I'm a bit of a newcomer when it comes to PostgreSQL, so I apologize if this is the wrong mailing list. Anyways, my two questions: 1. Is there any interest in adding a command line option to the `postgres` CLI that shuts down the PostgreSQL instance once (and optionally cleans up th

Re: Option on `postgres` CLI to shutdown when there are no more active connections?

2025-10-12 Thread David Barsky
> stop mode shuts down the server that is running in the specified data > > directory. Three different shutdown methods can be selected with the -m > > option. “Smart” mode disallows new connections, then waits for all > existing > clients to disconnect. If the server is in hot standby, > recovery