Japin Li <japinli(at)hotmail(dot)com> writes:
> On Thu, 21 Oct 2021 at 22:46, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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