Remove XLogFileInit() ability to unlink a pre-existing file.
authorNoah Misch <noah@leadboat.com>
Tue, 29 Jun 2021 01:34:56 +0000 (18:34 -0700)
committerNoah Misch <noah@leadboat.com>
Tue, 29 Jun 2021 01:34:56 +0000 (18:34 -0700)
commit421484f79c0b80209fa766eb00dbc2453a753273
tree9ac302e015f93be23552b6444bbc73ba4dd9bca8
parent85656bc3050f0846f53de95768b0f9f9df410560
Remove XLogFileInit() ability to unlink a pre-existing file.

Only initdb used it.  initdb refuses to operate on a non-empty directory
and generally does not cope with pre-existing files of other kinds.
Hence, use the opportunity to simplify.

Discussion: https://postgr.es/m/20210202151416.GB3304930@rfd.leadboat.com
src/backend/access/transam/xlog.c
src/backend/replication/walreceiver.c
src/include/access/xlog.h