| From: | Xuneng Zhou <xunengzhou(at)gmail(dot)com> |
|---|---|
| To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
| Cc: | surya poondla <suryapoondla4(at)gmail(dot)com>, cca5507 <cca5507(at)qq(dot)com>, solai v <solai(dot)cdac(at)gmail(dot)com>, Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: [BUG] Take a long time to reach consistent after pg_rewind |
| Date: | 2026-11-20 12:26:02 |
| Message-ID: | CABPTF7WvxL3in=zQOF_Tf18FVJfCbBHGDRVrKSjD6K+JTvaAFA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Nov 20, 2026 at 8:05 PM Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>
> On Fri, Nov 20, 2026 at 5:19 PM Xuneng Zhou <xunengzhou(at)gmail(dot)com> wrote:
> > +1 for backpatching and v5 LGTM.
>
> Thanks for the review! I've pushed the patch.
>
> > Do we need a regression test for this
> > issue in master? It seems that 24723e7cf39, b1f14c96720 and the
> > $subject all suffer from the extra header skipping of
> > pg_current_wal_insert_lsn()/GetXLogInsertRecPtr().
>
> So you're suggesting adding tests to verify that some operations such as
> WAIT FOR and pg_rewind handle the extra header situation correctly?
WAIT has the test in 24723e7cf39. I'm not sure whether it's
feasible/needed to add one for this issue. I'm thinking whether we
need to document/comment more about how
pg_current_wal_insert_lsn()/GetXLogInsertRecPtr() and its peer
GetXLogInsertEndRecPtr() handle the extra header situation . The
current abrevity of doc/comment seems to assume that users already
know the differences between these two and when to use each. But that
assumption seems unheld because we've seen several issues of misusing
them.
--
Regards,
Xuneng Zhou
HighGo Software Co., Ltd.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hayato Kuroda (Fujitsu) | 2026-11-20 12:27:33 | RE: Injection point: fix race condition between attach and cleanup |
| Previous Message | shveta malik | 2026-11-20 12:08:52 | Re: Proposal: Conflict log history table for Logical Replication |