Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZYCg8-0007KE-35 for pgsql-general@arkaria.postgresql.org; Sat, 05 Sep 2015 12:34:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZYCg7-0004xs-05 for pgsql-general@arkaria.postgresql.org; Sat, 05 Sep 2015 12:34:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZYCdr-0002Q4-Um for pgsql-general@postgresql.org; Sat, 05 Sep 2015 12:32:24 +0000 Received: from linode.thelabyrinth.net ([2600:3c00::f03c:91ff:fe69:8d76] helo=mail.thelabyrinth.net) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZYCdl-0007hf-2f for pgsql-general@postgresql.org; Sat, 05 Sep 2015 12:32:22 +0000 Received: from desktop.home.thelabyrinth.net (unknown [98.204.177.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id D547C1310F; Sat, 5 Sep 2015 12:32:12 +0000 (UTC) Subject: Re: error on online backup using pg_basebackup tool To: Joseph Kregloh , Gerdan Rezende dos Santos References: <55E81F00.7050907@2ndquadrant.com> Cc: =?UTF-8?Q?Mart=c3=adn_Marqu=c3=a9s?= , Michael Paquier , PostgreSQL mailing lists From: David Steele X-Enigmail-Draft-Status: N1110 Message-ID: <55EAE0CA.5040103@pgmasters.net> Date: Sat, 5 Sep 2015 08:32:10 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FttG7e9SBJenDLAmxDOw4IPWWVpCX6HWq" X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FttG7e9SBJenDLAmxDOw4IPWWVpCX6HWq Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 9/3/15 5:07 PM, Joseph Kregloh wrote: > You can always move the folder out of there. Depending on the version o= f > PostgreSQL different steps need to be take. If I remember correctly for= > version 9.3 you can move the symlink to point to the new directory. Pre= > 9.3 you need to move the symlink and the pointer inside the pg tables. You can move the directory and modify the symlink on 9.2 or later without any additional complications. However - and this is very important - PostgreSQL must be shut down during this operation. My recommendation would be to move both tablespaces out of $PGDATA. There has been a lot of discussion about disallowing it in future releases as it causes problems for various tools. --=20 -David david@pgmasters.net --FttG7e9SBJenDLAmxDOw4IPWWVpCX6HWq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJV6uDLAAoJEIA2uIJQ5SFAeB8P/1eI0VE6g2lcJo+ZxDvlnrYP ZEI8Em1xiiKzKN3O4+rBeTMXuiAFXOfgvPAqAMTwZ4xZA9uxL9N22doI3jNC8Me1 LkVS0em7VrQtc6+M25PP9C6CugzAvS3CVvr4i1+bN+6ieT4tT+WYmQUpGEBBBnZC CLU2ZkAifC4cLQh8gDR3HJFV5YHn5lAYojU9JRWCrcSYMf0ipYR5YSiwcEqx3hv7 tPyFHubE5Wu7QgEOHCRxE8o478uTpNvmI2W737xaxLBeS9GkQEUpxB0uZ3wctHeu +QfmZ4shRt1Fr3xz6E1tfE1fPEvSiwKfC9AINGcdMoVPYdAojWMLn9vLicAtnNc0 CCBZ2HEHwY4XqT9wuja9pEUMqVjsrjyAZQdZiYoIWHBxbPoh20J9I72x60KmX3JA mQVCp/Iu+c9b5UZkQ2vNKmxBFIlTs+blqo1Ho5bBNNopEpajieqS6OwPcaPCBlpH f6xKRENuAovpHtPnW5bUgFJq/5k2tKso2njXWnA2xqcoKBX7/SpVIAVCDLNGWBvW jrwE/bavrkiSGpFAnkOI6gXevZ/AiMbkHwChVuxTeKG3axRi/pOUM7V6sJ3L5AoM 7fu9Abw3iFiaT8h1wSnMwjPHPHJbeTjOq4RUs9kGHBnsX1fq8gK+xtcAlFsTeCrW Ex2QrheOkYWGk8KwEmlf =FBH4 -----END PGP SIGNATURE----- --FttG7e9SBJenDLAmxDOw4IPWWVpCX6HWq--