D.2. Debian/Ubuntu Packages

D.2.1. APT repositories
D.2.2. Debian/Ubuntu package details

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.

D.2.1. APT repositories


Table D.6. PostgreSQL Community APT repository (PGDG)


D.2.2. Debian/Ubuntu package details

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)

Note

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.