Re: Printing LSN made easy

Поиск
Список
Период
Сортировка
От Ashutosh Bapat
Тема Re: Printing LSN made easy
Дата
Msg-id CAGEoWWRtV82uB9uraC6B8++=JTShRSnQFTSnK2WDrnpQEpyqrQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Printing LSN made easy  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: Printing LSN made easy  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers


On Thu, Jan 21, 2021 at 3:53 PM Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
On 2021-01-20 08:50, Ashutosh Bapat wrote:
> Thanks for looking into this. I would like to keep both the LSN_FORMAT
> and LSN_FORMAT_ARGS but with a note that the first can not be used in
> elog() or in messages which require localization. We have many other
> places doing snprintf() and such stuff, which can use LSN_FORMAT. If we
> do so, the functions to output string representation will not be needed
> so they can be removed.

Then you'd end up with half the code doing this and half the code doing
that.  That doesn't sound very attractive.  It's not like "%X/%X" is
hard to type.

:). That's true. I thought LSN_FORMAT would document the string representation of an LSN. But anyway I am fine with this as well.
 

--
Peter Eisentraut
2ndQuadrant, an EDB company
https://www.2ndquadrant.com/


--
--
Best Wishes,
Ashutosh

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Printing LSN made easy
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: PoC/WIP: Extended statistics on expressions