Re: Remove custom redundant full page write description from GIN

From: Kirill Reshke <reshkekirill(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Remove custom redundant full page write description from GIN
Date: 2025-10-07 09:08:02
Message-ID: CALdSSPhsu+yp0XzfazeGbWLhfNreOFFkFZC2d4nQLPn3zMdMuw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 7 Oct 2025 at 11:46, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>
> On Wed, Oct 01, 2025 at 03:39:35PM +0900, Michael Paquier wrote:
> > + int32 ntuples;
> > + ntuples = ((ginxlogUpdateMeta *) rec)->ntuples;
> > + appendStringInfo(buf, "ntuples: %d", ntuples);
> >
> > In 0002. We have a routine for this type of assignments:
> > XLogRecGetBlockData(). Let's use it here for clarity.
>
> This should be XLogRecGetData(), not XLogRecGetBlockData(), as the
> data is assigned to the record. My apologies for the mistake.
> --
> Michael

Yes, thank you.

Turns out we already use XLogRecGetData in assignment: char *rec =
XLogRecGetData(record). But I still did alter v2 patch a bit,
introducing new variable xlrec, to avoid clunky casts between char *
and ginxlogUpdateMeta.

FPA v3.

--
Best regards,
Kirill Reshke

Attachment Content-Type Size
v3-0001-Better-gin-pg_waldump.patch application/octet-stream 1.3 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jingtang Zhang 2025-10-07 09:09:53 Re: Lock tag of relation extend lock
Previous Message David Bidoc 2025-10-07 08:55:14 oid2name : add objects file path