mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-31 04:57:22 +02:00
-It fixes up some bugs with handling setval calls -Adds upgrade instructions from prior versions -Improved the sample config file -Fixed some things in the clean_pending script
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
#########################################################################
|
|
# Config file for DBMirror.pl
|
|
# This file contains a sample configuration file for DBMirror.pl
|
|
# It contains configuration information to mirror data from
|
|
# the master database to a single slave system.
|
|
#
|
|
# $PostgreSQL: pgsql/contrib/dbmirror/slaveDatabase.conf,v 1.3 2004/09/10 04:31:06 neilc Exp $
|
|
#######################################################################
|
|
|
|
$masterHost = "masterMachine.mydomain.com";
|
|
$masterDb = "myDatabase";
|
|
$masterUser = "postgres";
|
|
$masterPassword = "postgrespassword";
|
|
|
|
# Where to email Error messages to
|
|
# $errorEmailAddr = "me@mydomain.com";
|
|
|
|
$slaveInfo->{"slaveName"} = "backupMachine";
|
|
$slaveInfo->{"slaveHost"} = "backupMachine.mydomain.com";
|
|
$slaveInfo->{"slaveDb"} = "myDatabase";
|
|
$slaveInfo->{"slavePort"} = 5432;
|
|
$slaveInfo->{"slaveUser"} = "postgres";
|
|
$slaveInfo->{"slavePassword"} = "postgrespassword";
|
|
# If uncommented then text files with SQL statements are generated instead
|
|
# of connecting to the slave database directly.
|
|
# slaveDb should then be commented out.
|
|
# $slaveInfo{"TransactionFileDirectory"} = '/tmp';
|
|
|
|
#
|
|
# The number of seconds dbmirror should sleep for between checking to see
|
|
# if more data is ready to be mirrored.
|
|
$sleepInterval = 60;
|
|
|
|
#If you want to use syslog
|
|
# $syslog = 1;
|