Re: Data Out of Sync with Physical Streaming Replication

From: Tomas Vondra <tomas(at)vondra(dot)me>
To: Tim Gerber <tggerber(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Data Out of Sync with Physical Streaming Replication
Date: 2025-01-15 20:27:41
Message-ID: 37ae75bc-6385-4e41-9a48-e03e7884bcf3@vondra.me
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/15/25 19:50, Tim Gerber wrote:
> Hi All,
>
>...
>
> Archive mode is on.   I ran pg_amcheck and everything came back clean. I
> know synchronous replication is an option, but it feels like something
> else is going on and would like to get to the bottom of it.
>
> Any ideas on what could be causing this?  I’m planning on turning on
> data_checksums and running pg_checksums to see if any corruption is found.
>

No idea. If the storage has some issues (which is the only thing data
checksums could catch, in some cases), then anything is possible.

I think it'd be interesting to compare the tuples returned on primary
vs. standby, including system columns etc. Ideally using pageinspect.
That might tell you what exactly is the difference, and perhaps also say
which XID to look at.

regards

--
Tomas Vondra

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tim Gerber 2025-01-15 21:14:49 Re: Data Out of Sync with Physical Streaming Replication
Previous Message Tim Gerber 2025-01-15 18:50:58 Data Out of Sync with Physical Streaming Replication