No need to manually create repmgr schema.

This commit is contained in:
Ian Barwick
2015-12-29 11:56:39 +09:00
parent 3bbd32c73c
commit 3088096318

View File

@@ -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