pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: pg_dump / pg_restore version confusion
Date: Wed, 29 Jul 2020 06:44:14 -0700
Message-ID: <7a9f79ab-6ed6-87e2-0885-2eea51a3ffc1@aklaver.com> (raw)
In-Reply-To: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch>
References: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch>

On 7/29/20 3:53 AM, 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?

The best that could be said is it may work.

Officially supported :

https://www.postgresql.org/docs/12/app-pgdump.html

"Because pg_dump is used to transfer data to newer versions of 
PostgreSQL, the output of pg_dump can be expected to load into 
PostgreSQL server versions newer than pg_dump's version. pg_dump can 
also dump from PostgreSQL servers older than its own version. 
(Currently, servers back to version 8.0 are supported.) However, pg_dump 
cannot dump from PostgreSQL servers newer than its own major version; it 
will refuse to even try, rather than risk making an invalid dump. Also, 
it is not guaranteed that pg_dump's output can be loaded into a server 
of an older major version — not even if the dump was taken from a server 
of that version. Loading a dump file into an older server may require 
manual editing of the dump file to remove syntax not understood by the 
older server. "




> 
> Thanks, Markus
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (4+ messages)

Message-ID: <7a9f79ab-6ed6-87e2-0885-2eea51a3ffc1@aklaver.com>
Permalink:  ../7a9f79ab-6ed6-87e2-0885-2eea51a3ffc1@aklaver.com/
Also on:    postgresql.org/message-id/7a9f79ab-6ed6-87e2-0885-2eea51a3ffc1@aklaver.com

 · 

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: adrian.klaver@aklaver.com, Markus.Zwettler@zuerich.ch
  Subject: Re: pg_dump / pg_restore version confusion
  In-Reply-To: <7a9f79ab-6ed6-87e2-0885-2eea51a3ffc1@aklaver.com>
  References: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch> <7a9f79ab-6ed6-87e2-0885-2eea51a3ffc1@aklaver.com>

* 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