Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i8cU4-0007N0-CN for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Sep 2019 03:42:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i8cU2-0001zB-Vl for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Sep 2019 03:42:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i8cU2-0001yz-Nr for pgsql-bugs@lists.postgresql.org; Fri, 13 Sep 2019 03:42:54 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i8cU0-00059z-Er for pgsql-bugs@lists.postgresql.org; Fri, 13 Sep 2019 03:42:54 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 112C7678; Thu, 12 Sep 2019 23:42:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 12 Sep 2019 23:42:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=b+h4jta4vMg5vEiPfbKYpxX1jdU UYEKOfSALaCa1c6E=; b=kEdbdwYn2LeXafNABsdMMy950DhQNmNMsiRkmY++fC4 kCAyPDwGZxjKxVZvTenwt/fGAosjRFX7EY9fy+xs5kTZ6qDUvLxO5koLQTOJuTUl e8HgQhHKHeO1JkEi+FXPRZkfMtNHaWATg8yN9Q3YQWwCe8yQGZep98qzpKTNwrp5 /w91ZOSK3xEXxZ1jbq/c45IpE3l1NT7H4DHqmHGr2Z32Hj0BP4Gf3V9NP9oaiPu/ BAUaYS25hKZ+CiA/1KFCeTr9TDyJD+16EmdXS+1bVxNlDiFsqpdJfqAl7gjZokyC 4rITYdbHajvhWKv6mXVwLlauxZ7shfZtR67uTJYMuvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=b+h4jt a4vMg5vEiPfbKYpxX1jdUUYEKOfSALaCa1c6E=; b=b+wstHeOke8YLSEl5GXl4Q bDDTiZuAk4P9wYlXGij89yZOO2xAH+sgP/cl9ABbI2+pc2d3a2taYHurBwZ7Z+rz MYcRMW2v3IQclZ8HDpv8+X7ZgvC/cNRYFdRDJXVTCjzTfhEV5FBCYegoEicom5Qc +UwLIjR3Nlx2Lcs+v8PeK9aY6hEG4ZcrcX8jiw27KMW1PemIxnRi8YPO2o1pmWda uQIzKXzwUMx+XKiEgvNWvcS+NFYIEbcmlSW5XM+5VMnIRY4WbImD81X+2rOjxm7r Jx347l0y2d37P7/SUt/jKm1ASfAFujQO1/OACN3UU9v1+AtAyGKH5fyRZdQFlLAg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrtdeigdejhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 911F9D6005F; Thu, 12 Sep 2019 23:42:47 -0400 (EDT) Date: Fri, 13 Sep 2019 12:42:41 +0900 From: Michael Paquier To: Magnus Hagander Cc: PG Bug reporting form , pgsql-bugs@lists.postgresql.org, sebastien.ruiz@harmonie-mutuelle.fr Subject: Re: BUG #16003: pg_basebackup failed with error : directory "xxxxxxx" exists but is not empty Message-ID: <20190913034241.GC2285@paquier.xyz> References: <16003-3d9701ae82536cd1@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jousvV0MzM2p6OtC" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --jousvV0MzM2p6OtC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --jousvV0MzM2p6OtC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl17EDEACgkQnvQgOdby QH2BaxAAkXGXxKl7SJWWK0gwE1ATo+A9zg5ojccRTfsucnDrbBcMsTGjUXYVybya o1flNJ3bUclxtreYH0ZZcGRMOMtIknF2vHAsMjWJLh+rMYMg4HO6eSQPA4o2GjKe bHmweCBYc29RQECHYdg2GIRHLlH3q8c+bE/5tg4zl7xF5YPYsTTJunJYB2TMHU/b 5/i0k7NC+DD5lAWa83lOwUo8ujzghM1j0SgiROtO/ISuO8iIjpsH5yssij/FqHV7 uxJNmB+zf/PMzsg72RF2EvYOsMZywGlrwd8ndR7N2dJXpeKRWQO/4huVsu3aXmdA /W2q/GhwWQAGQjGinUrKLqd+pXMvk9OWyfCbhpOACEEiCcxkydK4o5I3jYrLTkH/ DXtj1ynKY4a2aCIlBNegwMwpYtPmrQNTpHoaGab9Q2Ked2VmEczhM+aR/SoGPkxw y2KhLgDRM8D2HuXiao1jLbv1HfaiiRubMo3mXlz2UOM21Tkt9QdX998oVdRtTviO lY1deSu/NSZI7pmCSCIjQKKmRq/vFGkZOGx/wM10s1fwLjmJHwKcKdvl1faOPOTU hpcmyRxI3vlxQof0tjB3ezwpM/f76Nw8ps20CL1oyH2GRbaxgp4chVwA6FiH7yAK GhGaOMihEeXrZPbe9YDj9Pj84VRl9hcUNnF6rht+WT2rTRBdUfI= =Bo39 -----END PGP SIGNATURE----- --jousvV0MzM2p6OtC--