24 Mayıs 2021 Pazartesi

pg_createcluster komutu

Giriş
Açıklaması şöyle
Ubuntu/Debian packages for Postgres have their own layer on top of initdb and pg_ctl to control multiple instances and the integration with systemd.

The command that may be used to create an instance with specific options in Debian/Ubuntu is pg_createcluster

use pg_lsclusters to see the list of already existing clusters. 
Söz dizimi şöyle
pg_createcluster [options] version name [-- initdb options]
Örnek
Şöyle yaparız
$ pg_lsclusters
$ sudo pg_dropcluster --stop 13 main
$ sudo pg_createcluster 13 main -- --wal-segsize=256
$ sudo pg_ctlcluster 13 main start

Hiç yorum yok:

Yorum Gönder