K
K
Kenny002020-11-19 18:52:34
linux
Kenny00, 2020-11-19 18:52:34

How to disable automatic startup of one of the PostgreSQL 10 instances?

There is a Debian 9.0 server running PostgreSQL 10 version.
Launched 10 instances on various ports.
It is necessary that after restarting the server, 2 instances would not start automatically.

Attempts to do it by analogy with a single postgresql server (service) were unsuccessful.

sudo systemctl disable [email protected]
sudo systemctl disable [email protected]
sudo systemctl daemon-reload
sudo pg_ctlcluster 10 MyTest stop

How to disable automatic startup of one of the PostgreSQL 10 instances?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2020-11-19
@Kenny00

Debian/ubuntu specific.
Change /etc/postgresql/version/cluster_name/start.conf
auto (default) - automatic start
manual - manually
If you are using systemd, after changing the file, run systemctl daemon-reload

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question