Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Twexz-0004pJ-Hg for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Jan 2013 20:24:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Twexy-0002gh-JJ for pgsql-bugs@arkaria.postgresql.org; Sat, 19 Jan 2013 20:24:38 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Twexx-0002gc-UB for pgsql-bugs@postgresql.org; Sat, 19 Jan 2013 20:24:38 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Twexv-00071c-Qv for pgsql-bugs@postgresql.org; Sat, 19 Jan 2013 20:24:37 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Twexu-0006Fi-67; Sat, 19 Jan 2013 15:24:34 -0500 Date: Sat, 19 Jan 2013 15:24:34 -0500 From: Bruce Momjian To: George Machitidze Cc: Tom Lane , 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 Message-ID: <20130119202434.GB24541@momjian.us> References: <20130119033257.GC2857@momjian.us> <14155.1358571751@sss.pgh.pa.us> <20130119051549.GD2857@momjian.us> <14955.1358574423@sss.pgh.pa.us> <20130119150242.GE2857@momjian.us> <25216.1358612848@sss.pgh.pa.us> 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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Sat, Jan 19, 2013 at 10:45:15PM +0400, George Machitidze wrote: > Hi Bruce, Tom > > >The backstory on this is at the cited Red Hat bug ... apparently the OP > >decided I was clueless and he needed to consult some real authorities. > Oh come on, I'm very sure you both are good guys and know what you are doing, > none of us is ignorant bastard :) > Decided to open case here too, because of simple reason - maybe someone had > same issue, or knows how pg_upgrade works (in details) better than me, because > I am clueless. > This is test DB and I can erase it, but I'm very sure there's something wrong > in upgrade process - this is what I want to be solved. > > Now, we can open a bottle of whiskey and go back to the problem: > 1. I didn't run postmaster before/during pg_upgrade, it was never invoked > manually in this process > 2. There is no pid file AFTER application is stopped, but looks like it's there > while pg_upgrade is running - strace showed that and there is no need to run > FAM to verify that > > I don't know how pg_upgrade works, looks like it's trying to start postmaster, > which runs, postmaster.pid is created, then postmaster fails stop or needs some > more time bedore pg_upgrade is checking it's pid. That's what I see. > > So, is pg_upgrade starting postmaster? If yes, then when (at which step) and > why pid file check is done. That's all what we all want to know, right? The pid check is done before pg_upgrade starts or stops any postmaster, to make sure both servers are down before it starts. Tom wants that testing improved. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs