Re: [PATCH] Change "checkpoint starting" message to use "wal"

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: [PATCH] Change "checkpoint starting" message to use "wal"
Дата
Msg-id 20181129230423.GT3415@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: [PATCH] Change "checkpoint starting" message to use "wal"  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Greetings,

* Alvaro Herrera (alvherre@2ndquadrant.com) wrote:
> On 2018-Nov-29, Robert Haas wrote:
> > On Thu, Nov 29, 2018 at 4:10 AM Michael Paquier <michael@paquier.xyz> wrote:
> > > On Thu, Nov 29, 2018 at 10:04:12AM +0100, Christoph Berg wrote:
> > > > There's hundreds of other internal uses of xlog that were not touched
> > > > either, only the user-facing parts were changed.
> > >
> > > I have heard of them ;)
> > > Just wondering if this one is worth renaming as the variable is
> > > isolated.  It is not a big deal to do nothing though.
> >
> > Well, if we rename the user-visible part but not the internal part,
> > then they don't match, which is odd.
>
> But we already did that when we renamed all the xlog to WAL terminology
> ... why do we care about it now particularly?

I thought the idea was that we'd adjust things in the actual code as
that code was refactored or adjusted for other reasons, to minimize the
back-patching pain.  That said, in this particular case that would mean
just changing one variable when the other related ones aren't changed
and I suspect that might just be more confusing than having this
difference between the code and the user-messages.

So, at least in this instance, my feeling is that we keep the variable
as-is and just adjust the user message.  When, down the road, there's a
larger refactoring or change in this part of the code, that would be the
time to change the code to refer to WAL instead of XLOG.

Thanks!

Stephen

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: pg_config wrongly marked as not parallel safe?
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: [PATCH] pg_hba.conf : new auth option : clientcert=verify-full