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 1k0kaU-0001pO-Bf for pgsql-general@arkaria.postgresql.org; Wed, 29 Jul 2020 11:49:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k0kaQ-000599-UW for pgsql-general@arkaria.postgresql.org; Wed, 29 Jul 2020 11:49:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0kaQ-000592-Mh for pgsql-general@lists.postgresql.org; Wed, 29 Jul 2020 11:49:30 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0kaN-00021j-QL for pgsql-general@lists.postgresql.org; Wed, 29 Jul 2020 11:49:29 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1k0kaL-0001nF-HL; Wed, 29 Jul 2020 07:49:25 -0400 Date: Wed, 29 Jul 2020 07:49:25 -0400 From: Bruce Momjian To: "Zwettler Markus (OIZ)" Cc: pgsql-general Subject: Re: pg_dump / pg_restore version confusion Message-ID: <20200729114925.GA12059@momjian.us> References: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee