pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add headers needed by pg_combinebackup --clone
Date: Sun, 30 Jun 2024 18:54:03 +0000
Message-ID: <E1sNzgZ-003h0n-2z@gemulon.postgresql.org> (raw)

Add headers needed by pg_combinebackup --clone

The code for file cloning existed, but was not reachable as it relied on
constants from missing headers. Due to that, on Linux --clone always
failed with

  error: file cloning not supported on this platform

Fixed by including the missing headers to relevant places. Adding the
headers revealed a couple compile errors in copy_file_clone(), so fix
those too.

Reported-by: Peter Eisentraut
Discussion: https://postgr.es/m/48da4a1f-ccd9-4988-9622-24f37b1de2b4%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e99e840b82756bc6858222d97453639cef929b53

Modified Files
--------------
src/bin/pg_combinebackup/copy_file.c        | 12 +++++++++++-
src/bin/pg_combinebackup/pg_combinebackup.c |  8 ++++++++
2 files changed, 19 insertions(+), 1 deletion(-)



Message-ID: <E1sNzgZ-003h0n-2z@gemulon.postgresql.org>
Permalink:  ../E1sNzgZ-003h0n-2z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sNzgZ-003h0n-2z@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tomas.vondra@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add headers needed by pg_combinebackup --clone
  In-Reply-To: <E1sNzgZ-003h0n-2z@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox