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

Поиск
Список
Период
Сортировка
От Noah Misch
Тема pgsql: Remove XLogFileInit() ability to unlink a pre-existing file.
Дата
Msg-id E1ly2fW-0002av-2d@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: doc: Improve PG14 release notes
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Add support for LZ4 with compression of full-page writes in WAL