Tue Dec 13 21:45:34 PST 2005
- Previous message: [Slony1-commit] By cbbrowne: Add additional commentary about NewGen testbed
- Next message: [Slony1-commit] By cbbrowne: Add comments about test DB settings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Add in "createlang" for each database that is created. No sense in
requiring that plpgsql be added to template1 when test scripts are
creating the databases and can easily add the language.
Modified Files:
--------------
slony1-engine/tests:
run_test.sh (r1.5 -> r1.6)
-------------- next part --------------
Index: run_test.sh
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/tests/run_test.sh,v
retrieving revision 1.5
retrieving revision 1.6
diff -Ltests/run_test.sh -Ltests/run_test.sh -u -w -r1.5 -r1.6
--- tests/run_test.sh
+++ tests/run_test.sh
@@ -246,6 +246,8 @@
else
err 3 "No db '${db}' or host '${host}' or user '${user}' or port '${port}' specified"
fi
+ status "add plpgsql to Origin"
+ $pgbindir/createlang -h $host -U $user -p $port plpgsql $db
status "loading origin DB with $testname/init_schema.sql"
$pgbindir/psql -h $host -p $port $db $user < $testname/init_schema.sql 1> ${mktmp}/init_schema.sql.${originnode} 2>${mktmp}/init_schema.sql.${originnode}
status "done"
@@ -273,6 +275,8 @@
if [ ${alias} -ne ${originnode} ]; then
status "creating subscriber ${alias} DB: $user -h $host -U $user -p $port $db"
$pgbindir/createdb -O $user -h $host -U $user -p $port --encoding $ENCODING $db 1> ${mktmp}/createdb.${alias} 2> ${mktmp}/createdb.${alias}
+ status "add plpgsql to subscriber"
+ $pgbindir/createlang -h $ohost -U $ouser -p $oport plpgsql $odb
status "loading subscriber ${alias} DB from $odb"
$opgbindir/pg_dump -s -h $ohost -U $ouser -p $oport $odb | $pgbindir/psql -h $host -p $port $db $user 1> ${mktmp}/init_schema.sql.${alias} 2> ${mktmp}/init_schema.sql.${alias}
status "done"
- Previous message: [Slony1-commit] By cbbrowne: Add additional commentary about NewGen testbed
- Next message: [Slony1-commit] By cbbrowne: Add comments about test DB settings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list