Re: clarifying trigger/rule behavior on logical replication subscribers
От | vignesh C |
---|---|
Тема | Re: clarifying trigger/rule behavior on logical replication subscribers |
Дата | |
Msg-id | CALDaNm1fAaeOhdTts3LgXs_e1TPZke3-HqFA9b8ZjVXOM66H5Q@mail.gmail.com обсуждение исходный текст |
Ответ на | clarifying trigger/rule behavior on logical replication subscribers ("Jonathan S. Katz" <jkatz@postgresql.org>) |
Ответы |
Re: clarifying trigger/rule behavior on logical replication subscribers
|
Список | pgsql-docs |
On Wed, 7 Jun 2023 at 10:17, Jonathan S. Katz <jkatz@postgresql.org> wrote: > > Hi, > > While answering a question on "do triggers fire on a logical replication > subscriber by default?" I tried to look up a reference to this behavior > in the docs. There wasn't a clear reference point, but on the > architecture page[1], I found this line that was closest to the answer: > > "The apply process on the subscriber database always runs with > session_replication_role set to replica, which produces the usual > effects on triggers and constraints." > > which assumes that the reader knows what the "usual effects" are. > > Attached is a patch that disambiguates this. > Thanks for the patch, one small change required, "literal>" should be "<literal>": + enable triggers and rules on a table using the + <link linkend="sql-altertable"><command>ALTER TABLE</command></link> command + and the literal>ENABLE TRIGGER</literal> and <literal>ENABLE RULE</literal> Regards, Vignesh
В списке pgsql-docs по дате отправления: