Re: Printing LSN made easy

Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>

From: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>, Craig Ringer <craig.ringer@enterprisedb.com>
Date: 2021-02-18T13:21:37Z
Lists: pgsql-hackers
On Thu, Feb 18, 2021 at 6:19 PM Peter Eisentraut <
peter.eisentraut@2ndquadrant.com> wrote:

> Here is an updated patch that just introduces LSN_FORMAT_ARGS().  I
> think the result is quite pleasant.
>

Thanks a lot Peter for producing this patch. I am fine with it. The way
this is defined someone could write xyz = LSN_FORMAT_ARGS(lsn). But then
they are misusing it so I won't care. Even my proposal had that problem.

--
Best Wishes,
Ashutosh

Commits

  1. Simplify printing of LSNs

  2. Unwind some workarounds for lack of portable int64 format specifier