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 1k0mIM-0005hW-Ew for pgsql-general@arkaria.postgresql.org; Wed, 29 Jul 2020 13:38:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k0mIL-0004Lv-F0 for pgsql-general@arkaria.postgresql.org; Wed, 29 Jul 2020 13:38:57 +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 1k0mIL-0004Lo-7E for pgsql-general@lists.postgresql.org; Wed, 29 Jul 2020 13:38:57 +0000 Received: from mx3.stadt-zuerich.ch ([194.56.33.12]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0mII-0006TC-An for pgsql-general@lists.postgresql.org; Wed, 29 Jul 2020 13:38:56 +0000 IronPort-SDR: R2OFEtxGvN85HafeKKgXXAtCxqnmsQ8V3p9vjdnkCS2LhCVPqWWFgR5ZFiuWSl8K42KjyNKojl Kcao7S3f1kO4y26X6tqVD5B5P0dDzGSLzbmCm3Su3xHZL1lS9HOCbfvdy5g7U/1v7BeR86mYsh jVaVauEwQFI7AET+LnEIG50zEFxSFnbLGF5PPgXCGRsXlldX0OO/s3ho3Wj0dq95yZeH4b/vbB UsWmZkZ6d55QhxDWupWGVEFMcWfQkfpq5KwhZptGG+cnRsExa4HjevSIkYus95ZD8LLu2o6Lxk jGY= X-IronPort-AV: E=Sophos;i="5.75,410,1589234400"; d="scan'208";a="13801660" Received: from unknown (HELO SZHM29235.global.szh.loc) ([10.7.49.100]) by mx3.prm.szh.zone with ESMTP/TLS/AES256-GCM-SHA384; 29 Jul 2020 15:38:53 +0200 Received: from SZHM27370.global.szh.loc (10.7.50.50) by SZHM29235.global.szh.loc (10.7.49.103) 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 15:38:52 +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 15:38:52 +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///StUCAAD99AP//0/RA Date: Wed, 29 Jul 2020 13:38:52 +0000 Message-ID: <8b459360516e4a32aa0d675afae8357e@zuerich.ch> References: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch> <20200729114925.GA12059@momjian.us> <20200729125432.GB12059@momjian.us> In-Reply-To: <20200729125432.GB12059@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 I cannot use pg_restore v9.6 on a pg_dump v12 because otherwise: pg_restore= : [archiver] unsupported version (1.14) in file header The external supplier did PG v9.5 database + pg_dump v12.=20 I would have to do pg_restore v12 (as of pg_dump v12) into my PG v9.6.=20 The version chain would be PG v9.5 =3D> pg_dump v12 =3D> pg_restore v12 =3D= > PG v9.6. That's why my question has been: would the whole chain work and is it suppo= rted? > -----Urspr=FCngliche Nachricht----- > Von: Bruce Momjian > Gesendet: Mittwoch, 29. Juli 2020 14:55 > An: Zwettler Markus (OIZ) > Cc: pgsql-general > Betreff: Re: pg_dump / pg_restore version confusion >=20 > On Wed, Jul 29, 2020 at 12:33:56PM +0000, Zwettler Markus (OIZ) wrote: > > 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? > > >=20 > Uh, good question. You should still use the version of pg_restore that y= ou are > loading _into_, not what you dumped from. >=20 > -- > Bruce Momjian https://momjian.us > EnterpriseDB https://enterprisedb.com >=20 > The usefulness of a cup is in its emptiness, Bruce Lee