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 1k0lHY-0003O6-Ft for pgsql-general@arkaria.postgresql.org; Wed, 29 Jul 2020 12:34:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k0lHX-0001UV-FU for pgsql-general@arkaria.postgresql.org; Wed, 29 Jul 2020 12:34:03 +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 1k0lHX-0001UO-7y for pgsql-general@lists.postgresql.org; Wed, 29 Jul 2020 12:34:03 +0000 Received: from mx3.stadt-zuerich.ch ([194.56.33.12]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0lHU-0002Sn-39 for pgsql-general@lists.postgresql.org; Wed, 29 Jul 2020 12:34:02 +0000 IronPort-SDR: /XEs4dyU848OT+Ijjh1ApGVZZifQnnR68WN8NEEfH/EGS3jgeaCDbAai8DLzVGrvbu8NS6EWww WLrvEven/SW7uQCtyxmGpDQJanVjk9b7vMrPLUIRrvEo/McUYJHvpD1hdXw9LW+leDTdKLtqjB gpzZ9Fy8PQOpl+jG3WtugtjdDvLoBGgKKESN3Yc/UfLQdwLaItP0nP94F7hfa8WJm6WrKuYmF8 I5QvpX0DqDBXqFAfzDsvqpL6iFyxcg1sOLMVF1CYYx5/KiilkQdRLUlOcYXSN1fEgpcOVQaD0B UTU= X-IronPort-AV: E=Sophos;i="5.75,410,1589234400"; d="scan'208";a="13794853" Received: from unknown (HELO SZHM27370.global.szh.loc) ([10.7.50.50]) by mx3.prm.szh.zone with ESMTP/TLS/AES256-GCM-SHA384; 29 Jul 2020 14:33:57 +0200 Received: from SZHM27370.global.szh.loc (10.7.50.52) by SZHM27370.global.szh.loc (10.7.50.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 29 Jul 2020 14:33:56 +0200 Received: from SZHM27370.global.szh.loc ([fe80::25ce:879f:5795:3325]) by SZHM27370.global.szh.loc ([fe80::25ce:879f:5795:3325%19]) with mapi id 15.01.1713.004; Wed, 29 Jul 2020 14:33:56 +0200 From: "Zwettler Markus (OIZ)" To: Bruce Momjian CC: pgsql-general Subject: AW: pg_dump / pg_restore version confusion Thread-Topic: pg_dump / pg_restore version confusion Thread-Index: AdZlllis7LpPYsrVQZeGQ+XO/HRLHv//7mSA///StUA= Date: Wed, 29 Jul 2020 12:33:56 +0000 Message-ID: References: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch> <20200729114925.GA12059@momjian.us> In-Reply-To: <20200729114925.GA12059@momjian.us> Accept-Language: de-CH, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.7.48.249] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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? -Markus > -----Urspr=FCngliche Nachricht----- > Von: Bruce Momjian > Gesendet: Mittwoch, 29. Juli 2020 13:49 > An: Zwettler Markus (OIZ) > Cc: pgsql-general > Betreff: Re: pg_dump / pg_restore version confusion >=20 > 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? >=20 > 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 i= s > recommended to use pg_dump v12 to dump a Postgres database from an earlie= r > version. >=20 > -- > Bruce Momjian https://momjian.us > EnterpriseDB https://enterprisedb.com >=20 > The usefulness of a cup is in its emptiness, Bruce Lee