In Debian/Ubuntu, the functionalities of pg_ctl
are provided by pg_ctlcluster
. Quoted from its manpage:
NAME
pg_ctlcluster - start/stop/restart/reload a PostgreSQL cluster
SYNOPSIS
pg_ctlcluster [options] cluster-version cluster-name action -- [pg_ctl
options]
where action = start|stop|restart|reload|promote
DESCRIPTION
This program controls the postmaster server for a particular cluster.
It essentially wraps the pg_ctl(1) command. It determines the cluster
version and data path and calls the right version of pg_ctl with
appropriate configuration parameters and paths.
It's not technically true that pg_ctl
is not installed with postgres packaged for Debian/Ubuntu. It's actually installed in /usr/lib/postgresql/X.Y/bin
, where X.Y
is the postgres version. This path is intentionally not in any user's default PATH since it should never needed to be invoked directly.
The reason for this setup is that the Debian/Ubuntu packaging supports several PostgreSQL instances running in parallel, either identical or different major versions.
To learn about that, it's best to read first https://help.ubuntu.com/community/PostgreSQL , before the real PostgreSQL manual or any other non-Ubuntu documentation.
postgres-xc
is a multi-master fork of PostgreSQL that shouldn't be confused with PostgreSQL itself. The hint suggesting to install it to get pg_ctl
is an unfortunate nonsense, probably a machine-generated advice based on the contents of postgres-xc
.
pg_ctl
?postgres
or at least list all the options.pg_ctl
is part of the PostgreSQL server package. You do not need postgres-XC, which is a different thing.apt-get
advise is incorrect, and what potentially someone might do to fix this problem? Might help future visitors quite a lot!