From 3088096318dfebdb34e2627e8cf8aa598a5becf2 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 29 Dec 2015 11:56:39 +0900 Subject: [PATCH] No need to manually create repmgr schema. --- FAILOVER.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/FAILOVER.rst b/FAILOVER.rst index 4c39a08b..72128632 100644 --- a/FAILOVER.rst +++ b/FAILOVER.rst @@ -93,7 +93,6 @@ Create the user and database to manage replication:: su - postgres createuser -s repmgr createdb -O repmgr repmgr - psql -f /usr/share/postgresql/9.0/contrib/repmgr_funcs.sql repmgr Restart the PostgreSQL server:: @@ -121,7 +120,7 @@ Log in to node2. Clone node1 (the current Master):: su - postgres - repmgr -d repmgr -U repmgr -h node1 standby clone + repmgr -d repmgr -U repmgr -h node1 standby clone Start the PostgreSQL server:: @@ -172,11 +171,13 @@ Register Master and Standby Log in to node1. -Register the node as Master:: +Register the node as master:: su - postgres repmgr -f /etc/repmgr/repmgr.conf master register +This will also create the repmgr schema and functions. + Log in to node2. Register it as a standby:: su - postgres