pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Upgrading old server
Date: Wed, 25 Sep 2019 12:00:39 -0400
Message-ID: <18538.1569427239@sss.pgh.pa.us> (raw)
In-Reply-To: <be9eef56-243f-6493-5f1e-7fffdc334cde@gmail.com>
References: <8818b028-bd2d-412e-d4e3-e29c49ffee17@zunibal.com>
	<20190925142933.GH6888@msg.df7cb.de>
	<be9eef56-243f-6493-5f1e-7fffdc334cde@gmail.com>

Ron <ronljohnsonjr@gmail.com> writes:
> On 9/25/19 9:29 AM, Christoph Berg wrote:
>> Re: Ekaterina Amez 2019-09-25 <8818b028-bd2d-412e-d4e3-e29c49ffee17@zunibal.com>
>>> We've decided to upgrade our PostgreSQL production servers. First task is
>>> remove an old v7.14 version. It was supposed to be upgraded to a v8.4
>>> server. The server was installed, several databases where released here but
>>> v7.4 was never migrated. The plan is pg_dump this database and psql it to
>>> existing 8.4 server. After this, we'll pg_upgrade.

>> If you doing dump-restore anyway, why not restore into v11 rightaway?

> Since it's recommend to run the newer pg_dump on the older database, I've 
> got to wonder if v11 pg_dump can read the v7.4 on-disk structures.

We dropped support for pre-8.0 source servers in pg_dump sometime
recently, though I forget if v11 is affected by that or not.
You could try just dumping with 7.4's pg_dump and seeing if the
output will load into v11 --- ideally it would, but I'd not be
surprised if there are issues that have to be resolved manually.
Or, if you have 8.4's pg_dump at hand, try using that.

7.4 to 11 is a big jump to be doing in one step.  There's definitely
something to be said for porting to an intermediate release, just to
break down the work into smaller chunks.  But I'd go for halfway between,
which if I counted releases correctly would be about 9.1, not 8.4.

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <18538.1569427239@sss.pgh.pa.us>
Permalink:  ../18538.1569427239@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18538.1569427239@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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com
  Subject: Re: Upgrading old server
  In-Reply-To: <18538.1569427239@sss.pgh.pa.us>
  References: <8818b028-bd2d-412e-d4e3-e29c49ffee17@zunibal.com> <20190925142933.GH6888@msg.df7cb.de> <be9eef56-243f-6493-5f1e-7fffdc334cde@gmail.com> <18538.1569427239@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