pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Sebastien Douche <sdouche@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Can't upgrade a DB from 8.4 to 9.3 with pg_uprade: pg 9 not started
Date: Mon, 17 Feb 2014 13:25:56 -0500
Message-ID: <20140217182556.GB18934@momjian.us> (raw)
In-Reply-To: <20140217175402.GA18934@momjian.us>
References: <CAAGHeXGgzByn_eP72eDDVEUyDJDcCK6HL+-sDWev8y0f8smtzA@mail.gmail.com>
	<20140214021551.GB3244@momjian.us>
	<CAAGHeXGjTR0=4sb0584f3PhkVwwZUJaA-Cb4nxrTctg-4mst=g@mail.gmail.com>
	<20140217175402.GA18934@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On Mon, Feb 17, 2014 at 12:54:02PM -0500, Bruce Momjian wrote:
> > > Does that help?  Did you use a different environment for the check and
> > > non-check phases?
> > 
> > I found a fiable solution: remove the -w option on the pg_ctl' wrapper
> > (and added sleep 5 for waiting the launch) when pg_upgrade want to
> > start PG. Tested on several db w/o issues. This option is broken on PG
> > <9 (several workaround exist in the code of pg_upgrade for it).
> 
> Oh, that's interesting.  We used to have a loop in there for cases where
> you we couldn't use -w, like for non-default connection settings, but I
> thought -w still worked for defaults, even back to 8.4.
> 
> It is possible we removed something that we should no one needed anymore
> but that 8.4 needs, but I am unclear what that would be.

I checked this and we use the pg_ctl version that matches the server we
are starting/stopping, so that kills the idea we removed something in
pg_ctl needed in older versions:

    snprintf(cmd, sizeof(cmd),
          "\"%s/pg_ctl\" -w -l \"%s\" -D \"%s\" -o \"-p %d%s%s %s%s\" start",
          cluster->bindir, SERVER_LOG_FILE, cluster->pgconfig, cluster->port,
          ---------------

You saw the failure running pg_dumpall --globals on the old server. 
Does pg_ctl -w work on the old/8.4 server, meaning can you run the
pg_ctl -w command that appears in the pg_upgrade logs, and then run a
pg_dumpall command right after?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (6+ messages)

Message-ID: <20140217182556.GB18934@momjian.us>
Permalink:  ../20140217182556.GB18934@momjian.us/
Also on:    postgresql.org/message-id/20140217182556.GB18934@momjian.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-admin@postgresql.org
  Cc: bruce@momjian.us, sdouche@gmail.com
  Subject: Re: Can't upgrade a DB from 8.4 to 9.3 with pg_uprade: pg 9 not started
  In-Reply-To: <20140217182556.GB18934@momjian.us>
  References: <CAAGHeXGgzByn_eP72eDDVEUyDJDcCK6HL+-sDWev8y0f8smtzA@mail.gmail.com> <20140214021551.GB3244@momjian.us> <CAAGHeXGjTR0=4sb0584f3PhkVwwZUJaA-Cb4nxrTctg-4mst=g@mail.gmail.com> <20140217175402.GA18934@momjian.us> <20140217182556.GB18934@momjian.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