Chris Browne cbbrowne at lists.slony.info
Fri May 1 08:29:27 PDT 2009
Update of /home/cvsd/slony1/slony1-engine/tests/testpartition
In directory main.slony.info:/tmp/cvs-serv13218/tests/testpartition

Modified Files:
      Tag: REL_2_0_STABLE
	README generate_dml.sh 
Log Message:
Fix problem reported by Melvin Davidson relating to cleanup thread.

VACUUM/ANALYZE request return codes were being misinterpreted as errors.

Fixed this, so that:
 - Errors are reported as such
 - Warnings are reported as such

Also modified partitioning test to suppress autovac on at least one table
so that regression tests may be expected to exercise this code.


Index: README
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/tests/testpartition/README,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** README	6 Sep 2007 16:12:00 -0000	1.2
--- README	1 May 2009 15:29:25 -0000	1.2.2.1
***************
*** 3,4 ****
--- 3,7 ----
  testpartition sets up a partitioning test, periodically adding new
  partitions.
+ 
+ It alters pg_autovac configuration to ensure that some tables are being
+ vacuumed by Slony-I.

Index: generate_dml.sh
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/tests/testpartition/generate_dml.sh,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -C2 -d -r1.3.2.1 -r1.3.2.2
*** generate_dml.sh	28 Apr 2009 21:48:20 -0000	1.3.2.1
--- generate_dml.sh	1 May 2009 15:29:25 -0000	1.3.2.2
***************
*** 79,82 ****
--- 79,85 ----
    status "done"
  
+   $pgbindir/psql -h $host -p $port -d $db -U $user -c "insert into pg_catalog.pg_autovacuum (vacrelid, enabled, vac_base_thresh, vac_scale_factor, anl_base_thresh, anl_scale_factor, vac_cost_delay, vac_cost_limit, freeze_min_age, freeze_max_age) (select oid, 'f', 0, 0, 0, 0, 0,0,0,0 from pg_catalog.pg_class where relnamespace = (select oid from pg_namespace where nsp_name = '_${CLUSTER1}') and relname = 'sl_seqlog');" 1> $mktmp/suppressautovac.log 2> $mktmp/suppressautovac.log
+   status "make sure there is at least one table being vacuumed by Slony-I"
+ 
    more_data
    wait_for_catchup



More information about the Slony1-commit mailing list