Thu Sep 6 09:12:02 PDT 2007
- Previous message: [Slony1-commit] slony1-engine/tests/testpartition README gen_ddl_slonik.sh gen_ddl_sql.sh generate_dml.sh init_add_tables.ik init_cluster.ik init_create_set.ik init_data.sql init_schema.sql init_subscribe_set.ik schema.diff settings.ik
- Next message: [Slony1-commit] slony1-engine/tests testresults.sql
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/tests/testpartition
In directory main.slony.info:/tmp/cvs-serv21553
Modified Files:
README gen_ddl_sql.sh generate_dml.sh schema.diff
Log Message:
Partitioning test -> HEAD
It's a little truncated from original form; it only generates a few
months worth of data, as opposed to many years.
Index: generate_dml.sh
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/tests/testpartition/generate_dml.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** generate_dml.sh 5 Sep 2007 21:20:29 -0000 1.1
--- generate_dml.sh 6 Sep 2007 16:12:00 -0000 1.2
***************
*** 24,29 ****
{
GENDATA="$mktmp/generate.data"
! for year in 2006 2007 2008 2009 2010 2011 2012; do
! for month in 1 2 3 4 5 6 7 8 9 10 11 12; do
echo "" > ${GENDATA}
numrows=$(random_number 50 75)
--- 24,31 ----
{
GENDATA="$mktmp/generate.data"
! #for year in 2006 2007 2008 2009 2010 2011 2012; do
! for year in 2006 ; do
! #for month in 1 2 3 4 5 6 7 8 9 10 11 12; do
! for month in 1 2 3 ; do
echo "" > ${GENDATA}
numrows=$(random_number 50 75)
Index: gen_ddl_sql.sh
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/tests/testpartition/gen_ddl_sql.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** gen_ddl_sql.sh 5 Sep 2007 21:20:29 -0000 1.1
--- gen_ddl_sql.sh 6 Sep 2007 16:12:00 -0000 1.2
***************
*** 24,28 ****
);
! select \"_${cluster}\".replicate_partition(${tableid}, 'public', 'sales_txns_${year}_${month}', NULL::text, 'Sales Partition for ${year} ${month}');
"
--- 24,28 ----
);
! select \"_${cluster}\".replicate_partition(${tableid}, 'public'::text, 'sales_txns_${year}_${month}'::text, NULL::text, 'Sales Partition for ${year} ${month}'::text);
"
Index: schema.diff
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/tests/testpartition/schema.diff,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** schema.diff 5 Sep 2007 21:20:29 -0000 1.1
--- schema.diff 6 Sep 2007 16:12:00 -0000 1.2
***************
*** 1,6 ****
select id, trans_on, quantity, amount from sales_txns order by id
select 'main', * from only sales_txns order by id
! select '2006_01', * from sales_txns_2006_01 order by id
! select '2006_02', * from sales_txns_2006_02 order by id
! select '2006_03', * from sales_txns_2006_03 order by id
! select '2006_04', * from sales_txns_2006_04 order by id
--- 1,6 ----
select id, trans_on, quantity, amount from sales_txns order by id
select 'main', * from only sales_txns order by id
! select '2006_1', * from sales_txns_2006_1 order by id
! select '2006_2', * from sales_txns_2006_2 order by id
! select '2006_3', * from sales_txns_2006_3 order by id
! select '2006_4', * from sales_txns_2006_4 order by id
- Previous message: [Slony1-commit] slony1-engine/tests/testpartition README gen_ddl_slonik.sh gen_ddl_sql.sh generate_dml.sh init_add_tables.ik init_cluster.ik init_create_set.ik init_data.sql init_schema.sql init_subscribe_set.ik schema.diff settings.ik
- Next message: [Slony1-commit] slony1-engine/tests testresults.sql
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list