Re: Scriptable way to validate a pg_dump restore ? - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Scriptable way to validate a pg_dump restore ?
Date
Msg-id ce54a2b0-dbbc-4915-b5d6-63839092d399@aklaver.com
Whole thread Raw
In response to Scriptable way to validate a pg_dump restore ?  (Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch>)
Responses Re: Scriptable way to validate a pg_dump restore ?  (Shaheed Haque <shaheedhaque@gmail.com>)
List pgsql-general
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@aklaver.com




pgsql-general by date:

Previous
From: Bob Jolliffe
Date:
Subject: Re: Query performance in 9.6.24 vs 14.10
Next
From: Laura Smith
Date:
Subject: Re: Scriptable way to validate a pg_dump restore ?