Re: Standardize LSN-based filename - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Standardize LSN-based filename
Date
Msg-id CAHGQGwHdz2zkviFxgWLW2U=MdTsb6wwgyHaO-y76f8-yZyGD_A@mail.gmail.com
Whole thread Raw
In response to Re: Standardize LSN-based filename  (Japin Li <japinli@hotmail.com>)
List pgsql-hackers
On Wed, Aug 20, 2025 at 10:37 AM Japin Li <japinli@hotmail.com> wrote:
> Yeah.  It's for both consistency and for proper file sorting.
>
> Zero-padding ensures that when a file system or tool sorts the snapshot files
> alphabetically, the order is also chronological. For example, without
> zero-padding, 2-1.snap would come before 10-1.snap, which is incorrect.

I understand this situation can occur. Does this actually cause any real issues?
If not, and if no other programs depend on file name ordering, then the current
naming should be fine?

Regards,

--
Fujii Masao



pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: Fix replica identity checks for MERGE command on published table.
Next
From: Andrey Borodin
Date:
Subject: Re: Remove condition variables from injection wait logic.