Re: pgsql: Fix pg_basebackup with in-place tablespaces. - Mailing list pgsql-committers

From David Steele
Subject Re: pgsql: Fix pg_basebackup with in-place tablespaces.
Date
Msg-id 66373991-e520-40c1-f1e8-c758c7b24cb7@pgmasters.net
Whole thread Raw
In response to pgsql: Fix pg_basebackup with in-place tablespaces.  (Thomas Munro <tmunro@postgresql.org>)
Responses Re: pgsql: Fix pg_basebackup with in-place tablespaces.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
On 3/14/22 19:31, Thomas Munro wrote:
> Fix pg_basebackup with in-place tablespaces.
> 
> Previously, pg_basebackup from a cluster that contained an 'in-place'
> tablespace, as introduced by commit 7170f215, would produce a harmless
> warning on Unix and fail completely on Windows.

Perhaps I'm being picky, but seems like this logic should be wrapped in:

if (allow_in_place_tablespaces)
{
     <...>
}

I worry about strange effects when this GUC is not enabled.

Regards,
-David



pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: Re: pgsql: Add 'basebackup_to_shell' contrib module.
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Fix pg_basebackup with in-place tablespaces.