Remove XLogFileInit() ability to unlink a pre-existing file.
Noah Misch <noah@leadboat.com>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +25 −36 |
| src/backend/replication/walreceiver.c | modified | +2 −3 |
| src/include/access/xlog.h | modified | +1 −1 |
Discussion
- Race between KeepFileRestoredFromArchive() and restartpoint 15 messages · 2021-02-02 → 2022-08-04