Re: Running pg_upgrade under Debian

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: rob stone <floriparob(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Running pg_upgrade under Debian
Date: 2015-04-19 17:13:38
Message-ID: CAMkU=1xyEiJ+8mWDVZrrm0s78eqAxu_C7F+bJ0WYOkTBvz8UHw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Apr 19, 2015 at 9:34 AM, rob stone <floriparob(at)gmail(dot)com> wrote:

>
>
>
> On Fri, 2015-04-17 at 16:16 -0700, Adrian Klaver wrote:
> > On 04/17/2015 03:09 PM, rob stone wrote:
> > > Hello,
> > >
> > > I'm trying to upgrade from 9.3 to 9.4 on my laptop and encountering
> this
> > > error:-
> > >
> > >
> > > postgres(at)roblaptop:/usr/lib/postgresql/9.4/bin$ ./pg_upgrade
> ...
>

> So, on the command line I'm putting "listen_addresses=localhost" which
> pg_upgrade picks up but the following option sets this to ''.
> It is starting pg_ctl in the 9.3/bin directory but makes the socket
> directory in 9.4/bin??
>

Note that 9.4/bin seems to be the current working directory from which you
are running the command. That is probably not such a good idea.

> If pg_upgrade is actually reading the conf files it should not be
> necessary to supply any of these options, as port numbers, PID file
> locations, etc. are specified there.
>

If pg_upgrade used the values from the config files, then anyone who is
accustomed to connecting to the database with those setting could
unthinkingly connect to it during the upgrade process and screw up the
upgrade. It intentionally chooses methods to prevent that from happening,
by putting the socket somewhere private, or at least unpredictable.

waiting for server to start....2596 5533cb8c.a24 2015-04-20 01:36:44
> AESTLOG: redirecting log output to logging collector process
> 2596 5533cb8c.a24 2015-04-20 01:36:44 AESTHINT: Future log output will

appear in directory "pg_log"

However, it appears appear that pg_upgrade does honor the logging-collector
related settings from the config file (should it? I can see arguments both
ways) and you so you have to look in the pg_log directory to figure out
what the actual problem is.

Cheers,

Jeff

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim Nasby 2015-04-19 20:08:38 Re: Waiting on ExclusiveLock on extension
Previous Message rob stone 2015-04-19 16:34:16 Re: Running pg_upgrade under Debian