From: | "Daniel Verite" <daniel(at)manitou-mail(dot)org> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #13911: pg_upgrade from 8.4 to 9.5 broken |
Date: | 2016-02-04 16:25:17 |
Message-ID: | 82fb531d-69a8-4af1-b9e6-8e6922d22e62@mm |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-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
From | Date | Subject | |
---|---|---|---|
Next Message | dv | 2016-02-04 16:31:46 | BUG #13917: "upsert" construct doesn't work with partial index |
Previous Message | Federico Campoli | 2016-02-04 16:23:47 | Re: BUG #13911: pg_upgrade from 8.4 to 9.5 broken |