pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Magnus Hagander <magnus@hagander.net>
Cc: PG Bug reporting form <noreply@postgresql.org>
Cc: pgsql-bugs@lists.postgresql.org
Cc: sebastien.ruiz@harmonie-mutuelle.fr
Subject: Re: BUG #16003: pg_basebackup failed with error : directory "xxxxxxx" exists but is not empty
Date: Fri, 13 Sep 2019 12:42:41 +0900
Message-ID: <20190913034241.GC2285@paquier.xyz> (raw)
In-Reply-To: <CABUevExO_OwbCA2pMjL3Kecz9y22XNwthcPELrD_2ZcdAivfWA@mail.gmail.com>
References: <16003-3d9701ae82536cd1@postgresql.org>
	<CABUevExO_OwbCA2pMjL3Kecz9y22XNwthcPELrD_2ZcdAivfWA@mail.gmail.com>

On Thu, Sep 12, 2019 at 09:27:02AM -0400, Magnus Hagander wrote:
> And actually putting new tablespace directories inside other tablespaces is
> *definitely* not the way it's supposed to be done.

Yes.

> As a workaround, you might be able to use pg_basebackup with -T to relocate
> the tablespaces into a directory that is not in conflict.

I was wondering about that and that should work.  Looking at sendDir()
in basebackup.c, we only accept links from the root of pg_tlbspc, so
all any links inside another tablespace would just be ignored.  In
this case, the server would complain with a WARNING and "skipping
special file blah".
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (6+ messages)  latest in thread

Message-ID: <20190913034241.GC2285@paquier.xyz>
Permalink:  ../20190913034241.GC2285@paquier.xyz/
Also on:    postgresql.org/message-id/20190913034241.GC2285@paquier.xyz

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: michael@paquier.xyz, magnus@hagander.net, noreply@postgresql.org, sebastien.ruiz@harmonie-mutuelle.fr
  Subject: Re: BUG #16003: pg_basebackup failed with error : directory "xxxxxxx" exists but is not empty
  In-Reply-To: <20190913034241.GC2285@paquier.xyz>
  References: <16003-3d9701ae82536cd1@postgresql.org> <CABUevExO_OwbCA2pMjL3Kecz9y22XNwthcPELrD_2ZcdAivfWA@mail.gmail.com> <20190913034241.GC2285@paquier.xyz>

* 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