Re: pg_waldump/heapdesc.c and struct field names

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: pg_waldump/heapdesc.c and struct field names
Дата
Msg-id CAH2-Wz=HsfCP9PKOfx7LO6e+Msq-rGOSkkrzw0oXAkHjYXxuUw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_waldump/heapdesc.c and struct field names  (Masahiko Sawada <sawada.mshk@gmail.com>)
Ответы Re: pg_waldump/heapdesc.c and struct field names  (Peter Geoghegan <pg@bowt.ie>)
Список 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 по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: pg_waldump/heapdesc.c and struct field names
Следующее
От: Victor Yegorov
Дата:
Сообщение: Re: Deleting older versions in unique indexes to avoid page splits