pgenv gains a new command (and contributor!)
, the PostgreSQL binary manager written as a Bourne Again Shell script, has gained a new command:
The idea of this command is to report the status of a selected PostgreSQL instance, mainly if it is running or not.
Behind the scenes
the implementation exploits the
command for the selected instance, stopping the execution immediatly if the user has no selected any instance.
The output of
has been mangled to appear a little less verbose, in particular the
prefix has been removed.
is the author of this patch, and hopefully a new contributor that will help improving
again and again.
As an example, when using the new
command you will get something like the following:
% pgenv status
server is running (PID: 51503)
/usr/pgsql-16/bin/postgres "-D" "/postgres/16/data"