Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ServPostGre:~# su postgres
- postgres@ServPostGre:/root$ slonik_create_set 1
- cluster name = teepycluster;
- node 1 admin conninfo='host=192.168.0.38 dbname=teepy user=slony port=5432 password=teepyrep';
- node 2 admin conninfo='host=192.168.0.24 dbname=teepy user=slony port=5432 password=teepyrep';
- # TABLE ADD KEY
- # CREATE SET
- try {
- create set (id = 1, origin = 1, comment = 'Set 1 for teepycluster');
- } on error {
- echo 'Could not create subscription set 1 for teepycluster!';
- exit -1;
- }
- # SET ADD TABLE
- echo 'Subscription set 1 created';
- echo 'Adding tables to the subscription set';
- # SET ADD SEQUENCE
- echo 'Adding sequences to the subscription set';
- echo 'All tables added';
- postgres@ServPostGre:/root$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement