Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZtzO3-0003Tu-4i for pgsql-admin@arkaria.postgresql.org; Wed, 04 Nov 2015 14:50:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZtzO2-0004fk-Ig for pgsql-admin@arkaria.postgresql.org; Wed, 04 Nov 2015 14:50:06 +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_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZtzO2-0004fB-6O for pgsql-admin@postgresql.org; Wed, 04 Nov 2015 14:50:06 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZtzNy-0003Kc-Cz for pgsql-admin@postgresql.org; Wed, 04 Nov 2015 14:50:05 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1ZtzNu-0002mW-Q0; Wed, 04 Nov 2015 09:49:58 -0500 Date: Wed, 4 Nov 2015 09:49:58 -0500 From: Bruce Momjian To: Jorge Torralba Cc: "pgsql-admin@postgresql.org" Subject: Re: pg_upgrade with --link then pg_basebackup for replication Message-ID: <20151104144958.GA15722@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Mon, Nov 2, 2015 at 04:39:02PM -0800, Jorge Torralba wrote: > Here is an odd question. > > If one was to upgrade Postgres to 9.4 from 9.1 using the --link option, then > setup replication using pg_basebackup, would the standby server preserve the > hard links with the pg_basebackup or will -D /new/destination/data/dir be a > clean unlinked version? I will be clean. If you want to upgrade the the standby to 9.4 without a new basebackup, see this blog entry: http://momjian.us/main/blogs/pgblog/2015.html#June_10_2015 > Afterwards, if failing over to standby then failing back, would that implement > a non linked version back on the primary if specifying a new data directory as > well ? The links are only created on the server you run pg_upgrade, meaning normally not on the standby. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Roman grave inscription + -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin