Re: Uber migrated from Postgres to MySQL

From: "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net>
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, "Maeldron T(dot)" <maeldron(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org, pgsql-general-owner(at)postgresql(dot)org
Subject: Re: Uber migrated from Postgres to MySQL
Date: 2016-07-29 19:03:46
Message-ID: 20160729150346.68116328@imp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 29 Jul 2016 13:06:04 -0500
Larry Rosenman <ler(at)lerctr(dot)org> wrote:
> > Is that because it is hard to install the old and new clusters on
> > the same server on FreeBSD?
> >
> The current FreeBSD Ports collection ports only allow ONE version to
> be installed at a time.

As does NetBSD. The problem is that unlike Python (which BSD allows
multiple versions) there is only one executable to deal with. It's not
an insurmountable problem but it could get messy.

The answer is either chroot or mount and run pg_upgrade on another
server. If you can afford the downtime you can also delete PG, install
the new version and run pg_upgrade without modifying the existing DB.
If it succeeds then replace the directories and restart the new
version. If it fails then uninstall PG, reinstall the older version
and restart. Lather, rinse, repeat until it upgrades cleanly.

--
D'Arcy J.M. Cain <darcy(at)druid(dot)net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 788 2246 (DoD#0082) (eNTP) | what's for dinner.
IM: darcy(at)Vex(dot)Net, VoIP: sip:darcy(at)druid(dot)net

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2016-07-29 19:07:53 Re: Uber migrated from Postgres to MySQL
Previous Message Stephen Frost 2016-07-29 18:50:32 Re: Uber migrated from Postgres to MySQL