Re: [HACKERS] Subscription code improvements
От
Masahiko Sawada
Тема
Re: [HACKERS] Subscription code improvements
Дата
Msg-id
CAD21AoAvaXizc2h7aiNyK_i0FQSa-tmhpdOGwbhh7Jy544Ad4Q@mail.gmail.com
Ответ на
Re: [HACKERS] Subscription code improvements (Peter Eisentraut)
Список
Дерево обсуждения
[HACKERS] Subscription code improvements Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] Subscription code improvements Noah Misch <noah@leadboat.com>
Re: [HACKERS] Subscription code improvements Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Subscription code improvements Noah Misch <noah@leadboat.com>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] Subscription code improvements Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Subscription code improvements Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] Subscription code improvements Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Subscription code improvements Stephen Frost <sfrost@snowman.net>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] Subscription code improvements Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] Subscription code improvements Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] Subscription code improvements Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] Subscription code improvements Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] Subscription code improvements Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Subscription code improvements Stephen Frost <sfrost@snowman.net>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] Subscription code improvements Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: Re: [HACKERS] Subscription code improvements David Steele <david@pgmasters.net>
Re: Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] Subscription code improvements David Steele <david@pgmasters.net>
Re: [HACKERS] Subscription code improvements Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Subscription code improvements David Steele <david@pgmasters.net>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] Subscription code improvements Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] Subscription code improvements Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
Re: [HACKERS] Subscription code improvements Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Subscription code improvements Masahiko Sawada <sawada.mshk@gmail.com>
On Sat, Aug 5, 2017 at 10:29 AM, Peter Eisentraut wrote: > On 8/4/17 12:02, Masahiko Sawada wrote: >> To make ALTER SUBSCRIPTION REFRESH being transactional, I prefer >> Petr's proposal. Because it can make ALTER SUBSCRIPTION and DROP >> SUBSCRIPTION stop the table sync workers that are in progress of >> copying data. I'm not sure killing table sync workers in DDL commands >> would be acceptable but since it can free unnecessary slots of logical >> replication workers and replication slots I'd prefer this idea. > > OK, I have committed the 0004 patch. Thank you! > >> However, even with this patch there is still an issue that NOTICE >> messages "removed subscription for table public.t1" can be appeared >> even if we rollback ALTER SUBSCRIPTION REFRESH command as I mentioned >> on earlier thread. Since I think this behaviour will confuse users who >> check server logs I'd like to deal with it, I don't have a good idea >> though. > > Maybe we can just remove those messages? > > We don't get messages when we create a subscription about which tables > are part of it. So why do we need such messages when we refresh a > subscription? I think that the messages is useful when we add/remove tables to/from the publication and then refresh the subscription, so we might want to change it to DEBUG rather than elimination. Regards, -- Masahiko Sawada NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center
В списке pgsql-hackers по дате отправления
От: Amit Langote
Дата: