Re: pg_waldump/heapdesc.c and struct field names - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: pg_waldump/heapdesc.c and struct field names
Date
Msg-id CAH2-Wz=HsfCP9PKOfx7LO6e+Msq-rGOSkkrzw0oXAkHjYXxuUw@mail.gmail.com
Whole thread Raw
In response to Re: pg_waldump/heapdesc.c and struct field names  (Masahiko Sawada <sawada.mshk@gmail.com>)
Responses Re: pg_waldump/heapdesc.c and struct field names  (Peter Geoghegan <pg@bowt.ie>)
List pgsql-hackers
On Sun, Jan 3, 2021 at 8:58 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote:
> On Mon, Jan 4, 2021 at 12:55 PM Peter Geoghegan <pg@bowt.ie> wrote:
> +1 for changing heapdesc.c on master. It's not only readable but also
> consistent with other *desc showing the field named latestRemovedXid.
> For instance, nbtdesc.c has:
>
>         case XLOG_BTREE_REUSE_PAGE:
>             {
>                 xl_btree_reuse_page *xlrec = (xl_btree_reuse_page *) rec;
>
>                 appendStringInfo(buf, "rel %u/%u/%u; latestRemovedXid %u",
>                                  xlrec->node.spcNode, xlrec->node.dbNode,
>                                  xlrec->node.relNode, xlrec->latestRemovedXid);
>                 break;
>             }

Right. Self-consistency matters, as does consistency with the source
code itself.

-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: pg_waldump/heapdesc.c and struct field names
Next
From: Victor Yegorov
Date:
Subject: Re: Deleting older versions in unique indexes to avoid page splits