I think you may reference to function: pg_xlogfile_name in
src/backend/access/transam/xlogfuncs.c, it use XLogFileName defined in
src/include/access/xlog_internal.h
#define XLogFileName(fname, tli, logSegNo) \
snprintf(fname, MAXFNAMELEN, "%08X%08X%08X", tli, \
(uint32) ((logSegNo) / XLogSegmentsPerXLogId), \
(uint32) ((logSegNo) % XLogSegmentsPerXLogId))
hope it's helpful for you
--Tony
On 20/07/2017 16:42, 王刚 wrote:
> I study source code about wal, and have a question about xlog file name . what does 000000010000000000000001 mean? Someone says that it means tli logid segno. I don't understand.