Subject: Re: pg_walfile_name uses XLByteToPrevSeg

From: Robert Haas <[email-masked]>
Date: Fri, 4 Feb 2022 09:17:54 -0500

On Fri, Feb 4, 2022 at 9:05 AM Ashutosh Bapat
<[email-masked]> wrote:
> And it gives some surprising results as well
> ---
> #select pg_walfile_name('0/0'::pg_lsn);
>      pg_walfile_name
> --------------------------
>  00000001FFFFFFFF000000FF
> (1 row)
> ----

Yeah, that seems wrong.

-- 
Robert Haas
EDB: http://www.enterprisedb.com