Fri Jan 28 13:20:21 PST 2011
- Previous message: [Slony1-commit] Slony-I-commit Notes were about bug #189
- Next message: [Slony1-commit] Slony-I-commit Updating release notes. Bug 181 - bulk adding of tables
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bug 181. Bulk adding of tables + Fewer defaults to set add table. This change allows users to: 1. omit the ORIGIN parameter to 'set add table' or 'set add sequence' 2. omit the id parameter for 'set add table' or 'set add sequence'. slonik will query all nodes it has admin conninfo data for to find the next available id 3. use a regular expression as an argument to 'set add table' or 'set add sequence' to add a group of tables (or sequences) to a set with a single command. Examples: set add table(set id=1, tables='public.*'); set add sequences(set id=1, sequences='public.*'); 4. Have slonik automatically add any sequences that are used as part of a SERIAL datatype to the set while it is adding the table. set add table(set id=1, fully qualified name='public.test', add sequences=true); Implemented by Steve Singer with input, documentation, tests, testing and some patches from Chris Browne Branch ------ master Details ------- http://git.postgresql.org/gitweb?p=slony1-engine.git;a=commitdiff;h=0600fa560a03f3bbf91c33ba249927ca43626195 Modified Files -------------- doc/adminguide/slonik_ref.sgml | 106 +++++- src/slonik/parser.y | 30 ++- src/slonik/scan.l | 2 + src/slonik/slonik.c | 622 +++++++++++++++++++++++++--- src/slonik/slonik.h | 6 + tests/testmanytables/README | 4 + tests/testmanytables/gen_weak_user.sh | 6 + tests/testmanytables/generate_dml.sh | 81 ++++ tests/testmanytables/init_add_tables.ik | 35 ++ tests/testmanytables/init_cluster.ik | 3 + tests/testmanytables/init_create_set.ik | 2 + tests/testmanytables/init_data.sql | 8 + tests/testmanytables/init_schema.sql | 49 +++ tests/testmanytables/init_subscribe_set.ik | 4 + tests/testmanytables/schema.diff | 4 + tests/testmanytables/settings.ik | 4 + 16 files changed, 899 insertions(+), 67 deletions(-)
- Previous message: [Slony1-commit] Slony-I-commit Notes were about bug #189
- Next message: [Slony1-commit] Slony-I-commit Updating release notes. Bug 181 - bulk adding of tables
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list