2 Installation & Configuration
Consider using PG Version >= 7.3.1 where replication is included in the base distribution (postgresql-7.3.x/contrib/dbmirror) cd /root/software/postgresql-7.3.1/contrib/dbmirror make make install
You should now have a file named pending.so that contains the trigger. 2) Run MirrorSetup.sqlThis file contains SQL commands to setup the Mirroring environment. This includes
To execute the script use psql as followspsql -f MirrorSetup.sql MyDatabaseName where MyDatabaseName is the name of the database you wish to install mirroring on (Your master).
Each slave database needs its own configuration file for the
DBMirror.pl script. See slaveDatabase.conf for a sample. |
copyright by retoh - created with mytexi