Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0mrx-00079K-46 for pgsql-general@arkaria.postgresql.org; Wed, 29 Jul 2020 14:15:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k0mrw-0004ra-3K for pgsql-general@arkaria.postgresql.org; Wed, 29 Jul 2020 14:15:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0mrv-0004rP-Ri for pgsql-general@lists.postgresql.org; Wed, 29 Jul 2020 14:15:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0mrt-0006uN-PE for pgsql-general@lists.postgresql.org; Wed, 29 Jul 2020 14:15:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 06TEFdgm1314763; Wed, 29 Jul 2020 10:15:40 -0400 From: Tom Lane To: "Zwettler Markus (OIZ)" cc: Bruce Momjian , pgsql-general Subject: Re: AW: pg_dump / pg_restore version confusion In-reply-to: References: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch> <20200729114925.GA12059@momjian.us> Comments: In-reply-to "Zwettler Markus (OIZ)" message dated "Wed, 29 Jul 2020 12:33:56 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1314761.1596032139.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 29 Jul 2020 10:15:39 -0400 Message-ID: <1314762.1596032139@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Zwettler Markus (OIZ)" writes: > And I can also do this restore: > > Would a pg_restore with a v12 client into a postgres v9.6 database work = and be officially supported? > 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