pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Martín Fernández <fmartin91@gmail.com>
Cc: Hellmuth Vargas <hivs77@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: PG Upgrade with hardlinks, when to start/stop master and replicas
Date: Fri, 22 Feb 2019 00:03:00 -0500
Message-ID: <4533.1550811780@sss.pgh.pa.us> (raw)
In-Reply-To: <20190222023352.kcyomdb4w2l7n6px@momjian.us>
References: <CAN3Qy4oDNdRDeD0UoipmK9aMRxeKftnr67NW1v+zu0uPGJR7Nw@mail.gmail.com>
	<5c6c2c3e3ec218380d000001@polymail.io>
	<20190219163706.GV6197@tamriel.snowman.net>
	<CAH0BA3nWBT35xm0mXXVDja1=Wnw9Vip3GQYAnPyAXcPnW1DMeg@mail.gmail.com>
	<20190219172524.GW6197@tamriel.snowman.net>
	<20190222020728.agkycvvsnh7i556p@momjian.us>
	<20190222023132.GP6197@tamriel.snowman.net>
	<20190222023352.kcyomdb4w2l7n6px@momjian.us>

Bruce Momjian <bruce@momjian.us> 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




view thread (17+ messages)  latest in thread

Message-ID: <4533.1550811780@sss.pgh.pa.us>
Permalink:  ../4533.1550811780@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4533.1550811780@sss.pgh.pa.us

 · 

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bruce@momjian.us, sfrost@snowman.net, fmartin91@gmail.com, hivs77@gmail.com
  Subject: Re: PG Upgrade with hardlinks, when to start/stop master and replicas
  In-Reply-To: <4533.1550811780@sss.pgh.pa.us>
  References: <CAN3Qy4oDNdRDeD0UoipmK9aMRxeKftnr67NW1v+zu0uPGJR7Nw@mail.gmail.com> <5c6c2c3e3ec218380d000001@polymail.io> <20190219163706.GV6197@tamriel.snowman.net> <CAH0BA3nWBT35xm0mXXVDja1=Wnw9Vip3GQYAnPyAXcPnW1DMeg@mail.gmail.com> <20190219172524.GW6197@tamriel.snowman.net> <20190222020728.agkycvvsnh7i556p@momjian.us> <20190222023132.GP6197@tamriel.snowman.net> <20190222023352.kcyomdb4w2l7n6px@momjian.us> <4533.1550811780@sss.pgh.pa.us>

* 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