pgsql: Remove XLogFileInit() ability to unlink a pre-existing file.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove XLogFileInit() ability to unlink a pre-existing file.
Date: 2021-06-29 01:36:06
Message-ID: E1ly2fW-0002av-2d@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/421484f79c0b80209fa766eb00dbc2453a753273

Modified Files
--------------
src/backend/access/transam/xlog.c | 61 ++++++++++++++---------------------
src/backend/replication/walreceiver.c | 5 ++-
src/include/access/xlog.h | 2 +-
3 files changed, 28 insertions(+), 40 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-06-29 02:19:55 pgsql: Add support for LZ4 with compression of full-page writes in WAL
Previous Message Bruce Momjian 2021-06-29 00:59:14 pgsql: doc: Improve PG14 release notes