pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: jpaul@aconex.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13911: pg_upgrade from 8.4 to 9.5 broken
Date: Thu, 04 Feb 2016 13:03:55 -0500
Message-ID: <22861.1454609035@sss.pgh.pa.us> (raw)
In-Reply-To: <20160204030603.2782.10257@wrigleys.postgresql.org>
References: <20160204030603.2782.10257@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

jpaul@aconex.com writes:
> I've been attempting to run "pg_upgrade" to move data from Postgresql 8.4.22
> to 9.5

> The command I've been running is:
> /usr/lib/postgresql/9.5/bin/pg_upgrade --old-datadir
> '/etc/postgresql/8.4/main' --new-datadir '/etc/postgresql/9.5/main'
> --old-bindir '/usr/lib/postgresql/8.4/bin' --new-bindir
> '/usr/lib/postgresql/9.5/bin' 

> This results in the following error within "pg_upgrade_internal.log"
> Finding the real data directory for the old cluster         Could not get
> data directory using "/usr/lib/postgresql/8.4/bin/postgres" -D
> "/etc/postgresql/8.4/main" -C data_directory: No such file or directory

Before 9.2, pg_upgrade never worked at all for setups with config-only
data directories, since it couldn't figure out where the real data
directory was.  Now it does work, but only if the old postmaster supports -C.

			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



view thread (7+ messages)  latest in thread

Message-ID: <22861.1454609035@sss.pgh.pa.us>
Permalink:  ../22861.1454609035@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22861.1454609035@sss.pgh.pa.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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jpaul@aconex.com
  Subject: Re: BUG #13911: pg_upgrade from 8.4 to 9.5 broken
  In-Reply-To: <22861.1454609035@sss.pgh.pa.us>
  References: <20160204030603.2782.10257@wrigleys.postgresql.org> <22861.1454609035@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