repmgr .deb
packages are provided by EDB as well as the
PostgreSQL Community APT repository, and are available for each community-supported
PostgreSQL version, currently supported Debian releases, and currently supported
Ubuntu LTS releases.
Table D.5. EDB public repository
Repository URL: | https://dl.enterprisedb.com/ |
Repository documentation: | https://repmgr.org/docs/current/installation-packages.html#INSTALLATION-PACKAGES-DEBIAN |
Table D.6. PostgreSQL Community APT repository (PGDG)
Repository URL: | https://apt.postgresql.org/ |
Repository documentation: | https://wiki.postgresql.org/wiki/Apt |
The table below lists relevant information, paths, commands etc. for the repmgr packages on Debian 9.x ("Stretch"). Substitute the appropriate PostgreSQL major version number for your installation.
See also Section 13.2.2 for some specifics related to configuring the repmgrd daemon.
Table D.7. Debian 9.x packages
Package name example: | postgresql-11-repmgr |
Metapackage: | repmgr-common |
Installation command: | apt-get install postgresql-11-repmgr |
Binary location: | /usr/lib/postgresql/11/bin |
repmgr in default path: | Yes (via wrapper script /usr/bin/repmgr ) |
Configuration file location: | (not set by package) |
Data directory: | /var/lib/postgresql/11/main |
PostgreSQL service command: | systemctl [start|stop|restart|reload] postgresql@11-main |
repmgrd service command: | systemctl [start|stop|restart|reload] repmgrd |
repmgrd service file location: | /etc/init.d/repmgrd (defaults in: /etc/defaults/repmgrd ) |
repmgrd log file location: | (not specified by package; set in repmgr.conf ) |
When using Debian packages, instead of using the systemd service
command directly, it's recommended to execute pg_ctlcluster
(as root
, either directly or via sudo
), e.g.:
pg_ctlcluster 11 main [start|stop|restart|reload]
For pre-systemd systems, pg_ctlcluster
can be executed directly by the postgres
user.