Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 853a93a

Browse files
author
Liudmila Mantrova
committed
DOC: updated multimaster example
1 parent fbe1070 commit 853a93a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/src/sgml/multimaster.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ export PGDATA=/var/lib/pgpro/&edn;-&majorversion;/data
573573

574574
for i in `seq 1 3`; do
575575
echo "host replication myuser node$i md5" >> $PGDATA/pg_hba.conf
576+
echo "host mydb myuser node$i md5" >> $PGDATA/pg_hba.conf
576577
echo "node$i:5432:mydb:myuser:myuserpassword" >> ~/.pgpass
577578
done
578579
chmod 0600 ~/.pgpass
@@ -621,7 +622,7 @@ sudo service postgrespro-&edn;-&majorversion; restart
621622
It will be replicated to all the other nodes automatically.
622623
The following example illustrates extension creation on node1.
623624
<programlisting>
624-
psql --dbname=mydb --username=myuser --host=127.0.0.1 --port=5432 -c "CREATE EXTENSION IF NOT EXISTS multimaster"
625+
psql --dbname=mydb --username=myuser --host=node1 --port=5432 -c "CREATE EXTENSION IF NOT EXISTS multimaster"
625626
</programlisting>
626627
</para>
627628
<para>

0 commit comments

Comments
 (0)