From: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
To: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: AW: pg_dump / pg_restore version confusion
Date: Wed, 29 Jul 2020 13:38:52 +0000
Message-ID: <8b459360516e4a32aa0d675afae8357e@zuerich.ch> (raw)
In-Reply-To: <20200729125432.GB12059@momjian.us>
References: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch>
<20200729114925.GA12059@momjian.us>
<cd13226e522a4ff1aed6488d865f5c52@zuerich.ch>
<20200729125432.GB12059@momjian.us>
I cannot use pg_restore v9.6 on a pg_dump v12 because otherwise: pg_restore: [archiver] unsupported version (1.14) in file header
The external supplier did PG v9.5 database + pg_dump v12.
I would have to do pg_restore v12 (as of pg_dump v12) into my PG v9.6.
The version chain would be PG v9.5 => pg_dump v12 => pg_restore v12 => PG v9.6.
That's why my question has been: would the whole chain work and is it supported?
> -----Ursprüngliche Nachricht-----
> Von: Bruce Momjian <bruce@momjian.us>
> Gesendet: Mittwoch, 29. Juli 2020 14:55
> An: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
> Cc: pgsql-general <pgsql-general@lists.postgresql.org>
> Betreff: Re: pg_dump / pg_restore version confusion
>
> On Wed, Jul 29, 2020 at 12:33:56PM +0000, Zwettler Markus (OIZ) wrote:
> > And I can also do this restore:
> >
> > <quote>
> > Would a pg_restore with a v12 client into a postgres v9.6 database work and be
> officially supported?
> > </quote>
>
> Uh, good question. You should still use the version of pg_restore that you are
> loading _into_, not what you dumped from.
>
> --
> Bruce Momjian <bruce@momjian.us> https://momjian.us
> EnterpriseDB https://enterprisedb.com
>
> The usefulness of a cup is in its emptiness, Bruce Lee
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: Markus.Zwettler@zuerich.ch, bruce@momjian.us
Subject: Re: pg_dump / pg_restore version confusion
In-Reply-To: <8b459360516e4a32aa0d675afae8357e@zuerich.ch>
References: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch> <20200729114925.GA12059@momjian.us> <cd13226e522a4ff1aed6488d865f5c52@zuerich.ch> <20200729125432.GB12059@momjian.us> <8b459360516e4a32aa0d675afae8357e@zuerich.ch>
* 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