From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: giomac@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7815: Upgrading PostgreSQL from 9.1 to 9.2 with pg_upgrade/postgreql-setup fails - invalid status retrieve
Date: Sat, 19 Jan 2013 00:47:03 -0500
Message-ID: <14955.1358574423@sss.pgh.pa.us> (raw)
In-Reply-To: <20130119051549.GD2857@momjian.us>
References: <E1TwKHs-0005yp-39@wrigleys.postgresql.org>
<20130119033257.GC2857@momjian.us>
<14155.1358571751@sss.pgh.pa.us>
<20130119051549.GD2857@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Bruce Momjian <bruce@momjian.us> writes:
> On Sat, Jan 19, 2013 at 12:02:31AM -0500, Tom Lane wrote:
>> In the meantime, I was wondering a bit why pg_upgrade looks at the
>> postmaster.pid file at all.
> The reason we check for postmaster.pid is so we can give the user a clue
> about which postmaster is running.
[ scratches head... ] I failed to detect any such clue in the error
message it prints. Had you printed the PID from the file, or even
better looked to see if that process was actually still alive, this
argument would be reasonable. But pg_upgrade does neither of those,
whereas if it had started a postmaster the postmaster would have done
both of those things.
> Also, we don't want to start on a non-clean shutdown, so the missing pid
> file tells us it was clean.
I agree that super paranoia is not unreasonable in pg_upgrade. But it
would be useful to print something similar to what the backend prints,
about checking whether PID N is still there and manually removing the
lock file if not. Or (ahem) you could let the existing backend-side
logic do that for you, rather than reimplementing that logic badly.
Meanwhile I still have to figure out how come the postmaster.pid file
is still there in the OP's case ...
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, bruce@momjian.us, giomac@gmail.com
Subject: Re: BUG #7815: Upgrading PostgreSQL from 9.1 to 9.2 with pg_upgrade/postgreql-setup fails - invalid status retrieve
In-Reply-To: <14955.1358574423@sss.pgh.pa.us>
References: <E1TwKHs-0005yp-39@wrigleys.postgresql.org> <20130119033257.GC2857@momjian.us> <14155.1358571751@sss.pgh.pa.us> <20130119051549.GD2857@momjian.us> <14955.1358574423@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