Hi,
I've attached lr01.sql, a minimal psql reproducer for this issue. It
uses separate publisher and subscriber databases in the same instance
and waits for replication between updates.
On an affected build, the final query returns (1,111) and (222,2),
instead of (1,111) and (2,222).
Please run it on a test instance with logical replication enabled and
authentication configured for the subscription connection.
Best regards,
mingjiegao