CVS User Account cvsuser
Tue Mar 28 13:18:04 PST 2006
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.



More information about the Slony1-commit mailing list