May 2019
Intermediate to advanced
600 pages
20h 46m
English
We provide two variants: with and without systemd. This is similar to the previous recipe, Starting the database server manually, which we'll refer to for further information. For example, what is the exact name of the systemd service unit for a given database server on a given GNU/Linux distribution?
When using systemd, you can stop PostgreSQL using the fast mode by issuing the following after having replaced SERVICEUNIT with the appropriate systemd service unit name:
sudo systemctl stop SERVICEUNIT
If systemd is not available, and you are using Debian or Ubuntu, the command is as in the following example, which applies to the default version 11 instance:
pg_ctlcluster 11 main stop -m fast
The fast mode is the default since ...
Read now
Unlock full access