1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-05 07:41:25 +03:00

rserv replication toolkit from Vadim Mikheev.

This commit is contained in:
Thomas G. Lockhart
2000-12-20 17:22:35 +00:00
parent 96edf0c185
commit 54f2b601ef
19 changed files with 2644 additions and 0 deletions

32
contrib/rserv/regress.sh Executable file
View File

@@ -0,0 +1,32 @@
# regress.sh
# rserv regression test script
# (c) 2000 Thomas Lockhart, PostgreSQL Inc.
dropdb master
dropdb slave
createdb master
createdb slave
MasterInit master
SlaveInit slave
psql -c "create table t1 (i int, t text, d timestamp default text 'now');" master
MasterAddTable master t1 d
psql -c "create table t1 (i int, t text, d timestamp default text 'now');" slave
SlaveAddTable slave t1 d
psql -c "insert into t1 values (1, 'one');" master
psql -c "insert into t1 values (2, 'two');" master
Replicate master slave
SyncSyncID master `GetSyncID --noverbose slave`
psql -c "insert into t1 values (3, 'three');" master
psql -c "insert into t1 values (4, 'four');" master
Replicate master slave
SyncSyncID master `GetSyncID --noverbose slave`
exit