Re: AW: pg_dump / pg_restore version confusion - Mailing list pgsql-general

From Tom Lane
Subject Re: AW: pg_dump / pg_restore version confusion
Date
Msg-id 1314762.1596032139@sss.pgh.pa.us
Whole thread Raw
In response to AW: pg_dump / pg_restore version confusion  ("Zwettler Markus (OIZ)" <Markus.Zwettler@zuerich.ch>)
List pgsql-general
"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



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: AW: pg_dump / pg_restore version confusion
Next
From: "Daniel Westermann (DWE)"
Date:
Subject: Re: Out of memory with "create extension postgis"