Re: Uber migrated from Postgres to MySQL

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Jerry Sievers <gsievers19(at)comcast(dot)net>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Scott Mead <scottm(at)openscg(dot)com>, Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>, PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Uber migrated from Postgres to MySQL
Date: 2016-07-29 18:50:32
Message-ID: 20160729185032.GV4028@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jerry,

* Jerry Sievers (gsievers19(at)comcast(dot)net) wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > I agree, but I am not sure how to improve it. The big complaint I have
> > heard is that once you upgrade and open up writes on the upgraded
> > server, you can't re-apply those writes to the old server if you need to
> > fall back to the old server. I also don't see how to improve that either.
>
> Hmmm, is it at least theoretically possible that if a newly upgraded
> system were run for an interval where *no* incompatible changes to DDL
> etc had been done...
>
> ...that a downgrade could be performed?
>
> Er, using a not yet invented pg_downgrade:-)

The short answer is 'no'. Consider a case like the GIN page changes- as
soon as you execute DML on a column that has a GIN index on it, we're
going to rewrite that page using a newer version of the page format and
an older version of PG isn't going to understand it.

Those kind of on-disk changes are, I suspect, why you have to set the
"compatibility" option in the big $O product to be able to later do a
downgrade.

> That is, since higher version knew enough about lower version to
> rejigger everything... just maybe it could do the reverse.

That might work if you opened the database in read-only mode, but not
once you start making changes.

Thanks!

Stephen

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message D'Arcy J.M. Cain 2016-07-29 19:03:46 Re: Uber migrated from Postgres to MySQL
Previous Message Jerry Sievers 2016-07-29 18:17:39 Re: Uber migrated from Postgres to MySQL