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 1gx2zO-0005lN-Pb for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2019 05:03:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gx2zL-0006k9-5Q for pgsql-general@arkaria.postgresql.org; Fri, 22 Feb 2019 05:03:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gx2zK-0006k1-Pz for pgsql-general@lists.postgresql.org; Fri, 22 Feb 2019 05:03:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gx2zH-0000qv-GN for pgsql-general@lists.postgresql.org; Fri, 22 Feb 2019 05:03:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x1M530Lp004534; Fri, 22 Feb 2019 00:03:01 -0500 From: Tom Lane To: Bruce Momjian cc: Stephen Frost , =?iso-8859-1?Q?Mart=EDn_Fern=E1ndez?= , Hellmuth Vargas , "pgsql-generallists.postgresql.org" Subject: Re: PG Upgrade with hardlinks, when to start/stop master and replicas In-reply-to: <20190222023352.kcyomdb4w2l7n6px@momjian.us> References: <5c6c2c3e3ec218380d000001@polymail.io> <20190219163706.GV6197@tamriel.snowman.net> <20190219172524.GW6197@tamriel.snowman.net> <20190222020728.agkycvvsnh7i556p@momjian.us> <20190222023132.GP6197@tamriel.snowman.net> <20190222023352.kcyomdb4w2l7n6px@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Thu, 21 Feb 2019 21:33:52 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4532.1550811780.1@sss.pgh.pa.us> Date: Fri, 22 Feb 2019 00:03:00 -0500 Message-ID: <4533.1550811780@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bruce Momjian writes: > On Thu, Feb 21, 2019 at 09:31:32PM -0500, Stephen Frost wrote: >> * Bruce Momjian (bruce@momjian.us) wrote: >>> There was too much concern that users would accidentally start the old >>> server at some later point, and its files would be hard linked to the >>> new live server, leading to disaster. >> Sure, I understand that concern, just wish there was a better approach >> we could use for "DO NOT START THIS SERVER" rather than moving of the >> pg_control file. > As ugly as it is, I have never heard of a better solution. system("rm -rf $OLDPGDATA") ... nah, that is not a better idea. regards, tom lane