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 1k0mNb-0005uW-Eh for pgsql-general@arkaria.postgresql.org; Wed, 29 Jul 2020 13:44:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k0mNa-0003PM-Cr for pgsql-general@arkaria.postgresql.org; Wed, 29 Jul 2020 13:44:22 +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 1k0mNY-0003Hb-O1 for pgsql-general@lists.postgresql.org; Wed, 29 Jul 2020 13:44:22 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k0mNV-00031i-U1 for pgsql-general@lists.postgresql.org; Wed, 29 Jul 2020 13:44:19 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 81E405C0100; Wed, 29 Jul 2020 09:44:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 29 Jul 2020 09:44:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=F g0wkQTMQrnh6ei8aC2qUruKrvzSC11zFUOu6SjvfWI=; b=cUIrC4pMMtuVmivK4 UM3NVOpwkRE7lc07nBKjtSumyvhbp6BsLkx3iLMZTaqr45wcqy8850L4tk6dcVrq s1pct+jbVRJ8SUDBBVtVPwekpwYvkClxdrLSem5yP+ydFQZZqAd+ouKpSBBRI8iJ IU4JQ6aK62PHmDkz58TCQd6Uf4axNISEAS57ZYNRB8N2zbCvOa2KxuyhJtYznfdN oO8lezOZL6tCcZ105xBf1TGsMAEupchrr5AsNn1bq7ijndKNhgayvVQ77cAqlcGB IpWSxMh9XphbyhH1257veeaBTNX/XF+9nP7qa+aowI82FJ5a2ipscnsEWJ7YZxWu cEjeA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=Fg0wkQTMQrnh6ei8aC2qUruKrvzSC11zFUOu6Sjvf WI=; b=Mv+YCKFvQvKEwqVCjXnSypl3UDlgwCXJ+/JsQwS4T3N0ynjloEe4izBFZ JFehgHSD2h+4JilS9ozzrLBUPVQ4ZaVHU0KJzzLbsURWfzm1FUCGvboGCL+w+q8L kFzwnIgzz58t4SM1rtztPt8uII8AO2CIxVRZK6rRGTFzGBwirmDiEDB/k0NVmWTL bIO+LV31VQLxje5s1y3H0RBxhPqnPS3VWahZkhXMKRkQRLidw8s963JQPa3xzeE8 kuSGXFMAffv/btiZUz81BpDU2xf2VQlNNpyH+Hi2wVyYY0glnsyY9sobk9vpNVd1 HZSmLHi2Y8kq9lOljwRMcYbLNsM5g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrieeggdeikecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeehnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnheptedvieejiefhueegfedvhedtgfeujeejiefhkeeuiedt feehhefghfethfeggeejnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc fkphepjeehrddujedvrdehrddvfedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id C0A8A3060067; Wed, 29 Jul 2020 09:44:15 -0400 (EDT) Subject: Re: pg_dump / pg_restore version confusion To: "Zwettler Markus (OIZ)" , pgsql-general References: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch> From: Adrian Klaver Message-ID: <7a9f79ab-6ed6-87e2-0885-2eea51a3ffc1@aklaver.com> Date: Wed, 29 Jul 2020 06:44:14 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1c8014ee36544e6fb062e02f19907b5f@zuerich.ch> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/29/20 3:53 AM, 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? The best that could be said is it may work. Officially supported : https://www.postgresql.org/docs/12/app-pgdump.html "Because pg_dump is used to transfer data to newer versions of PostgreSQL, the output of pg_dump can be expected to load into PostgreSQL server versions newer than pg_dump's version. pg_dump can also dump from PostgreSQL servers older than its own version. (Currently, servers back to version 8.0 are supported.) However, pg_dump cannot dump from PostgreSQL servers newer than its own major version; it will refuse to even try, rather than risk making an invalid dump. Also, it is not guaranteed that pg_dump's output can be loaded into a server of an older major version — not even if the dump was taken from a server of that version. Loading a dump file into an older server may require manual editing of the dump file to remove syntax not understood by the older server. " > > Thanks, Markus > -- Adrian Klaver adrian.klaver@aklaver.com