The issue is that the logical replication initial data copy fires a statement trigger for INSERT, because it's implemented as a COPY internally.
By contrast, the normal apply worker does not fire any statement triggers (because they are not "statements").
We could adjust one or the other or leave it as is.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных