On Fri, May 7, 2021 at 1:43 PM Tom Lane <t...@sss.pgh.pa.us> wrote: > The interesting part of this is frame 6, which points here: > > case SYNC_METHOD_FDATASYNC: > if (pg_fdatasync(fd) != 0) > ereport(PANIC, > (errcode_for_file_access(), > errmsg("could not fdatasync file \"%s\": %m", > XLogFileNameP(ThisTimeLineID, segno))));
Oh, and I see that 13 has 9989d37d "Remove XLogFileNameP() from the tree" to fix this exact problem.