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

"Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch> writes:
> 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>

It might work, but it's not completely guaranteed.  Sometimes a new
pg_dump will use DDL syntax that doesn't exist in older versions,
even to describe constructs that do exist in older versions.  This
isn't really common though.

I'd say try it and see.  If the dump loads into 9.6 without errors then
it's probably fine (but you could dump again, with the same pg_dump
version, and diff the outputs to confirm).

			regards, tom lane





view thread (4+ messages)

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