mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-27 07:21:09 +08:00
33 lines
759 B
Bash
Executable File
33 lines
759 B
Bash
Executable File
# 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
|
|
MasterSync 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
|
|
MasterSync master `GetSyncID --noverbose slave`
|
|
|
|
exit
|