pgsql: Check HAVE_COPY_FILE_RANGE before calling copy_file_range

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема pgsql: Check HAVE_COPY_FILE_RANGE before calling copy_file_range
Дата
Msg-id E1rsnWW-000fQ0-DC@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Check HAVE_COPY_FILE_RANGE before calling copy_file_range

Fix a mistake in ac8110155132 - write_reconstructed_file() called
copy_file_range() without properly checking HAVE_COPY_FILE_RANGE.

Reported by several macOS machines. Also reported by cfbot, but I missed
that issue before commit.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/079d94ab3412fdeda637a24b17bde53c576b0007

Modified Files
--------------
src/bin/pg_combinebackup/reconstruct.c | 4 ++++
1 file changed, 4 insertions(+)


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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: pgsql: Allow using copy_file_range in write_reconstructed_file
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Fix incorrect calculation in BlockRefTableEntryGetBlocks.