Control: retitle -1 pg_lsclusters should show actually used port

Re: AKASH
> It would be useful if `pg_lsclusters` could detect and display all running
> PostgreSQL clusters, including those created manually, for better
> visibility and management.

That won't really work - there is no cluster name for these, and we
couldn't manage them anyway.

> When a PostgreSQL cluster is started with a custom port using
> `pg_ctlcluster` (e.g., `-o "-p <port>"`), `pg_lsclusters` reports the
> default port from the `postgresql.conf` file, not the actual port in use by
> the running instance.

That has some value, but might be hard to figure out at run time,
especially if the user running pg_lsclusters doesn't have read access
to the postmaster.pid file in the data directory.

> The `pg_dropcluster --stop` command deletes the PostgreSQL cluster
> immediately without any confirmation prompt or warning.

That extra safety switch is already there, it's spelled `--stop`.

Christoph

Reply via email to