From: | Egor Rogov <e(dot)rogov(at)postgrespro(dot)ru> |
---|---|
To: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Triggers and logical replication (10devel) |
Date: | 2017-04-21 13:53:04 |
Message-ID: | 12884dd6-8b96-361b-4264-72ee778c8a88@postgrespro.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 21.04.2017 16:29, Merlin Moncure wrote:
> On Fri, Apr 21, 2017 at 5:08 AM, Egor Rogov <e(dot)rogov(at)postgrespro(dot)ru> wrote:
>> Hello,
>> It seams that tiggers don't fire on subscriber's tables during logical
>> replication. Is it a bug?
> Reading the documentation (which is TBH a bit hard to follow) it
> appears that it is expected behavior.
>
> https://www.postgresql.org/docs/devel/static/sql-altertable.html states:
>
> "The trigger firing mechanism is also affected by the configuration
> variable session_replication_role. Simply enabled triggers will fire
> when the replication role is “origin” (the default) or “local”."
Ah, ALTER TABLE ENABLE REPLICA TRIGGER is what I missed.
Thanks!
Regards,
Egor Rogov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
From | Date | Subject | |
---|---|---|---|
Next Message | Petr Jelinek | 2017-04-21 13:59:35 | Re: Interval for launching the table sync worker |
Previous Message | Tels | 2017-04-21 13:52:05 | Re: WITH clause in CREATE STATISTICS |