From vividy at justware.co.jp Thu Jan 21 04:55:17 2021 From: vividy at justware.co.jp (=?ISO-2022-JP?B?GyRCRCUbKEIgGyRCMTY+OSFKGyhCWmhhbg==?= =?ISO-2022-JP?B?ZyBXZWlKaWUbJEIhSxsoQg==?=) Date: Thu, 21 Jan 2021 13:55:17 +0900 Subject: [Slony1-general] move_set question Message-ID: <20210121135516.6086.8B406A0E@justware.co.jp> Hi, slony: 2.2.8 postgresql:9.2.24 There is a system with such slony relation node 2->node1 node 2->node3 I need to move primary node from node1 to node2. after execute following command slonik_move_set 1 2 1 subscribe relation change to node 1->node2 node 2->node3 actually it works. changes on node1 will be spread to node2 and node3. But I hove no idea how to change to the following mode. node 1->node2 node 1->node3 Any suggestions would be greatly appreciated. From richard.yen at enterprisedb.com Thu Jan 21 05:37:53 2021 From: richard.yen at enterprisedb.com (Richard Yen) Date: Wed, 20 Jan 2021 21:37:53 -0800 Subject: [Slony1-general] move_set question In-Reply-To: <01010177234c144b-db0cdbd6-48f6-418d-bf2e-c41130b97337-000000@us-west-2.amazonses.com> References: <01010177234c144b-db0cdbd6-48f6-418d-bf2e-c41130b97337-000000@us-west-2.amazonses.com> Message-ID: On Wed, Jan 20, 2021 at 8:55 PM 張 蔚捷(Zhang WeiJie) via Slony1-general < slony1-general at lists.slony.info> wrote: > But I hove no idea how to change to the following mode. > node 1->node2 > node 1->node3 > > Any suggestions would be greatly appreciated. > You should be able to just do: subscribe set ( id = 1, provider = 1, receiver = 3 ); But first you will need to make sure node1->node2 has "forward = yes" (it is set to "yes" by default, so it may not be a problem for you) --Richard > _______________________________________________ > Slony1-general mailing list > Slony1-general at lists.slony.info > http://lists.slony.info/mailman/listinfo/slony1-general > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at ssinger.info Thu Jan 21 12:55:55 2021 From: steve at ssinger.info (Steve Singer) Date: Thu, 21 Jan 2021 07:55:55 -0500 (EST) Subject: [Slony1-general] move_set question In-Reply-To: <01010177237c85b9-88120960-5f38-4650-8e35-bf2d23b42dc5-000000@us-west-2.amazonses.com> References: <01010177234c144b-db0cdbd6-48f6-418d-bf2e-c41130b97337-000000@us-west-2.amazonses.com> <01010177237c85b9-88120960-5f38-4650-8e35-bf2d23b42dc5-000000@us-west-2.amazonses.com> Message-ID: On Thu, 21 Jan 2021, Richard Yen via Slony1-general wrote: > > > On Wed, Jan 20, 2021 at 8:55 PM 張 蔚捷(Zhang WeiJie) via Slony1-general wrote: > But I hove no idea how to change to the following mode. > node 1->node2 > node 1->node3 > > Any suggestions would be greatly appreciated. > > > You should be able to just do: > > subscribe set ( id = 1, provider = 1, receiver = 3 ); > > But first you will need to make sure node1->node2 has "forward = yes" (it is set to "yes" by default, so it may not be a problem > for you) Or resubscribe node (origin=1, provider=1,receiver=3); https://www.slony.info/documentation/2.2/stmtresubscribenode.html If you have multiple sets I think you need to use resubscribe node so all sets get adjusted at the same time. Steve > > --Richard > > > > _______________________________________________ > Slony1-general mailing list > Slony1-general at lists.slony.info > http://lists.slony.info/mailman/listinfo/slony1-general > > > > From vividy at justware.co.jp Fri Jan 22 02:25:06 2021 From: vividy at justware.co.jp (vividy at justware.co.jp) Date: Fri, 22 Jan 2021 11:25:06 +0900 Subject: [Slony1-general] move_set question In-Reply-To: References: <01010177237c85b9-88120960-5f38-4650-8e35-bf2d23b42dc5-000000@us-west-2.amazonses.com> Message-ID: <20210122112505.6103.8B406A0E@justware.co.jp> subscribe set (id = 1, provider = 1, receiver = 3, forward = yes); perfectly works for me. Thanks! On Thu, 21 Jan 2021 07:55:55 -0500 (EST) Steve Singer wrote: > On Thu, 21 Jan 2021, Richard Yen via Slony1-general wrote: > > > > > > > On Wed, Jan 20, 2021 at 8:55 PM 張 蔚捷(Zhang WeiJie) via Slony1-general wrote: > > But I hove no idea how to change to the following mode. > > node 1->node2 > > node 1->node3 > > > > Any suggestions would be greatly appreciated. > > > > > > You should be able to just do: > > > > subscribe set ( id = 1, provider = 1, receiver = 3 ); > > > > But first you will need to make sure node1->node2 has "forward = yes" (it is set to "yes" by default, so it may not be a problem > > for you) > > Or > > resubscribe node (origin=1, provider=1,receiver=3); > > https://www.slony.info/documentation/2.2/stmtresubscribenode.html > > If you have multiple sets I think you need to use resubscribe node so all sets get adjusted at the same time. > > > Steve > > > > > --Richard > > > > > > > > _______________________________________________ > > Slony1-general mailing list > > Slony1-general at lists.slony.info > > http://lists.slony.info/mailman/listinfo/slony1-general > > > > > > > >