Re: Remove page-read callback from XLogReaderState.

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: thomas(dot)munro(at)gmail(dot)com
Cc: ibrar(dot)ahmad(at)gmail(dot)com, andres(at)anarazel(dot)de, takashi(dot)menjo(at)gmail(dot)com, craig(at)2ndquadrant(dot)com, hlinnaka(at)iki(dot)fi, alvherre(at)2ndquadrant(dot)com, pgsql-hackers(at)postgresql(dot)org, takashi(dot)menjou(dot)vg(at)hco(dot)ntt(dot)co(dot)jp
Subject: Re: Remove page-read callback from XLogReaderState.
Date: 2021-10-07 08:28:20
Message-ID: 20211007.172820.1874635561738958207.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At Thu, 30 Sep 2021 09:40:06 +0900 (JST), Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> wrote in
> At Mon, 27 Sep 2021 17:31:03 +1300, Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote in
> > On Thu, Jul 15, 2021 at 4:48 PM Kyotaro Horiguchi
> > <horikyota(dot)ntt(at)gmail(dot)com> wrote:
> > > Gah... Thank you for noticing me. I thought that I have sent the
> > > rebased version. This is the rebased version on the current master.
> >
> > Hi Kyotaro,
> >
> > Did you see this?
> >
> > https://www.postgresql.org/message-id/20210429022553.4h5qii5jb5eclu4i%40alap3.anarazel.de
>
> Thank you for pinging me. I haven't noticed of that.
> I'll check on that line.

It looks like the XLogFindNextRecord was not finished. It should have
been turned into a state machine.

In this version (v18),

This contains only page-reader refactoring stuff.

- Rebased to the current master, including additional change for
XLOG_OVERWRITE_CONTRECORD stuff. (This needed the new function
XLogTerminateRead.)

- Finished XLogFindNextRecord including the fixup from Thomas' v17.

- Added a test for XLogFindNextRecord, on the behavior that
page-skipping on seeking for the first record.

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

Attachment Content-Type Size
v18-0001-Move-callback-call-from-ReadPageInternal-to-XLog.patch text/x-patch 27.6 KB
v18-0002-Move-page-reader-out-of-XLogReadRecord.patch text/x-patch 67.7 KB
v18-0003-Remove-globals-readOff-readLen-and-readSegNo.patch text/x-patch 8.0 KB
v18-0004-Make-XLogFindNextRecord-not-use-callback-functio.patch text/x-patch 19.3 KB
v18-0005-Split-readLen-and-reqLen-of-XLogReaderState.patch text/x-patch 11.9 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Etsuro Fujita 2021-10-07 08:57:47 Re: a comment in joinrel.c: compute_partition_bounds()
Previous Message Antonin Houska 2021-10-07 08:27:15 Re: storing an explicit nonce