pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Verite <daniel@manitou-mail.org>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #13911: pg_upgrade from 8.4 to 9.5 broken
Date: Thu, 04 Feb 2016 17:25:17 +0100
Message-ID: <82fb531d-69a8-4af1-b9e6-8e6922d22e62@mm> (raw)
In-Reply-To: <56B2DFE9.5080806@hogranch.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

	John R Pierce wrote:

> I don't use Ubuntu, but the data directories shouldn't be in /etc, thats 
> where the powergresql.conf files are located in their wrappered 
> systems.  The data directories should be in /var/something.

Yes, the data directory is presumably /var/lib/postgresql/8.4/main,
or the pg_lsclusters command can be used to clear up any doubt.

Besides, the pg_upgrade process is wrapped too, so what's
recommended is not to use pg_upgrade directly from
/usr/lib/postgresql/X.Y/... (just like any other command from
these directories), but rather invoke:

# pg_upgradecluster -v 9.5 8.4 main

which would let the wrapper deal with data directories and other
options by itself.

See 
http://manpages.ubuntu.com/manpages/trusty/man8/pg_upgradecluster.8.html

If a main/9.5 cluster already exists beforehand, it should be
dropped first with
# pg_dropcluster --stop 9.5 main

Best regards,
-- 
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


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



view thread (7+ messages)  latest in thread

Message-ID: <82fb531d-69a8-4af1-b9e6-8e6922d22e62@mm>
Permalink:  ../82fb531d-69a8-4af1-b9e6-8e6922d22e62@mm/
Also on:    postgresql.org/message-id/82fb531d-69a8-4af1-b9e6-8e6922d22e62@mm

 · 

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-bugs@postgresql.org
  Cc: daniel@manitou-mail.org
  Subject: Re: BUG #13911: pg_upgrade from 8.4 to 9.5 broken
  In-Reply-To: <82fb531d-69a8-4af1-b9e6-8e6922d22e62@mm>
  References: <56B2DFE9.5080806@hogranch.com> <82fb531d-69a8-4af1-b9e6-8e6922d22e62@mm>

* 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