On 1/29/24 10:12, Shaheed Haque wrote:
Yes. But I was under the impression that the initial copy of logical
replication was the same?
Are you taking about the copy_data option to WITH?
If so yes and no.
Yes as it uses COPY to transfer the data.
No as what COPY transfers can be affected by WHERE clauses on the
publisher. Also if you have cascading publishers/subscriptions the
'original' data maybe upstream of the publisher you are comparing to.
Finally logical replication is generally not static so there is the
issue of determining a point in time for the check.
--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx