Re: Printing LSN made easy - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Printing LSN made easy
Date
Msg-id YAfeizFQtFdWwGas@paquier.xyz
Whole thread Raw
In response to Re: Printing LSN made easy  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: Printing LSN made easy  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
List pgsql-hackers
On Wed, Jan 20, 2021 at 07:25:37AM +0100, Peter Eisentraut wrote:
> It looks like we are not getting any consensus on this approach.  One
> reduced version I would consider is just the second part, so you'd write
> something like
>
>     snprintf(lsnchar, sizeof(lsnchar), "%X/%X",
>              LSN_FORMAT_ARGS(lsn));
>
> This would still reduce notational complexity quite a bit but avoid any
> funny business with the format strings.

That seems reasonable to me.  So +1.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Release SPI plans for referential integrity with DISCARD ALL
Next
From: Peter Eisentraut
Date:
Subject: Re: Discarding DISCARD ALL