Tue Mar 28 13:18:04 PST 2006
- Previous message: [Slony1-commit] By cbbrowne: New Directory
- Next message: [Slony1-commit] By cbbrowne: Bug: slonik doesn't catch errors properly (ID: 1518) This
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message: ----------- Test scripts used for one-time test of a fix to bug #1538 Added Files: ----------- slony1-engine/tests/one-offs/bug1538: README (r1.1) build-and-populate-single-node (r1.1) -------------- next part -------------- --- /dev/null +++ tests/one-offs/bug1538/build-and-populate-single-node @@ -0,0 +1,21 @@ +#!/bin/bash +# $Id: build-and-populate-single-node,v 1.1 2006/03/28 21:18:04 cbbrowne Exp $ +export PGPORT=5832 +dropdb test1538 +createdb test1538 +pgbench -i -h localhost -p $PGPORT -d test1538 + +echo "cluster name = test1538; +node 1 admin conninfo='host=localhost dbname=test1538 port=$PGPORT'; +init cluster (id=1,comment='only node'); +create set (id = 1, origin=1, comment='test set'); +set add table (id=1, origin=1, set id=1, fully qualified name = 'public.accounts'); +set add table (id=2, origin=1, set id=1, fully qualified name = 'public.branches'); +set add table (id=3, origin=1, set id=1, fully qualified name = 'public.tellers'); +" | slonik + +slon -d 2 -c 1 test1538 'dbname=test1538' > /tmp/test.1538 & + +for i in 1 2 3 4 5 6 7 8 9 10; do + pgbench -h localhost -p $PGPORT -t 500 -d test1538 > /dev/null +done --- /dev/null +++ tests/one-offs/bug1538/README @@ -0,0 +1,10 @@ +$Id: README,v 1.1 2006/03/28 21:18:04 cbbrowne Exp $ + +This script expects to have a suitable PostgreSQL installation in $PATH + +It then drops/creates database "test1538", creates *one* Slony-I node, +starts up a slon against it, and throws some pgbench updates at it. + +You should then take a look at the node, to see that sl_event and +sl_log_1 are getting trimmed out even though there is only a single +node.
- Previous message: [Slony1-commit] By cbbrowne: New Directory
- Next message: [Slony1-commit] By cbbrowne: Bug: slonik doesn't catch errors properly (ID: 1518) This
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list