Japin Li <japinli@hotmail.com> writes:
> On Thu, 21 Oct 2021 at 22:46, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> There's another issue here: the subscriber can run user-defined code
>> (in triggers), while AFAIK the sender cannot.
> Sorry, I'm not sure about this. Could you give me an example?
If you're doing logical replication into a table that has triggers,
the replication worker has to execute those triggers.
regards, tom lane