pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: pg_dump / pg_restore version confusion
Date: Wed, 29 Jul 2020 07:49:25 -0400
Message-ID: <20200729114925.GA12059@momjian.us> (raw)
In-Reply-To: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch>
References: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch>

On Wed, Jul 29, 2020 at 10:53:34AM +0000, Zwettler Markus (OIZ) wrote:
> Hi,
> 
>  
> 
> An external supplier had a postgres v9.5 database which he dumped with a
> pg_dump v12 client in custom format using PgAdmin4.
> 
>  
> 
> Would a pg_restore with a v12 client into a postgres v9.6 database work and be
> officially supported?

Yes, you can always use a newer pg_dump on an older database, though the
reverse is not recommended.  In fact, if you are upgrading to PG 12, it
is recommended to use pg_dump v12 to dump a Postgres database from an
earlier version.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee






view thread (4+ messages)  latest in thread

Message-ID: <20200729114925.GA12059@momjian.us>
Permalink:  ../20200729114925.GA12059@momjian.us/
Also on:    postgresql.org/message-id/20200729114925.GA12059@momjian.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: bruce@momjian.us, Markus.Zwettler@zuerich.ch
  Subject: Re: pg_dump / pg_restore version confusion
  In-Reply-To: <20200729114925.GA12059@momjian.us>
  References: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch> <20200729114925.GA12059@momjian.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