Re: First WAL segment file that initdb creates

David Zhang <david.zhang@highgo.ca>

From: David Zhang <david.zhang@highgo.ca>
To: pgsql-hackers@lists.postgresql.org
Cc: Fujii Masao <masao.fujii@gmail.com>
Date: 2020-02-18T20:26:43Z
Lists: pgsql-hackers, pgsql-docs
The following review has been posted through the commitfest application:
make installcheck-world:  not tested
Implements feature:       not tested
Spec compliant:           not tested
Documentation:            tested, passed

The issue has been verified using below steps:
1. $ initdb -D /home/test/PG122DATA/data
2. $ ls -l /home/test/PG122DATA/data/pg_wal/
total 16388
-rw------- 1 test test 16777216 Feb 18 12:07 000000010000000000000001
drwx------ 2 test test     4096 Feb 18 12:07 archive_status

The first WAL segment file created by initdb is "000000010000000000000001", not "000000010000000000000000".

Commits

  1. Fix the name of the first WAL segment file, in docs.

  2. Bootstrap WAL to begin at segment logid=0 logseg=1 (000000010000000000000001)