Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sw411-001dhF-8e for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2024 18:24:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sw410-001lDk-Hd for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2024 18:23:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sw410-001lDc-3W for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2024 18:23:58 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sw40w-002Af9-Ug for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2024 18:23:56 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 668CFCD77E for ; Wed, 02 Oct 2024 20:23:51 +0200 (CEST) Received: from s934.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 57F3ACEF0D; Wed, 02 Oct 2024 20:23:51 +0200 (CEST) Received: from s470.loopia.se (unknown [172.22.191.6]) by s934.loopia.se (Postfix) with ESMTP id 554327CEA60; Wed, 02 Oct 2024 20:23:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.2 X-Spam-Level: X-Spam-Status: No, score=-1.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] autolearn=disabled Authentication-Results: s470.loopia.se (amavisd-new); dkim=pass (2048-bit key) header.d=yesql.se Received: from s934.loopia.se ([172.22.191.6]) by s470.loopia.se (s470.loopia.se [172.22.190.34]) (amavisd-new, port 10024) with LMTP id FH3uqJ4a1p_2; Wed, 2 Oct 2024 20:23:51 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s934.loopia.se (Postfix) with ESMTPSA id CE76A7CEA4F; Wed, 02 Oct 2024 20:23:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1727893430; bh=sjR5j8wfBSc4+YEa+3nm76L9qXYfJU92iw0qFaz1ouc=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=LPGfyNhj0JR4NhfYnTuCELgttBKlSUiMbDWAd6w1XajI8VN8xSPC+oAKCF0du2wuj 0tswwh/hxVGch+NU+wz8CiqaCrOTXAPyUAkob3sG7ga4iGkIw8kI033LncJw7HXkoY POdQQM175atmIXMO1p04NnuYMAu/6IPwk7JQ6hUrLO4usK6I9PhpP673g+z2n6/CN6 YHOwV0PwYucjuTqMw7XxSWte1kkW3LPUW+iLtsmczN7LOp61AWVghaZEu2AXDv3zbR SgIeSg5yDkd3VZPKXA2A5VAEk9or6iq33f3dpibK5sPlvmuwQ92GJAYf33Lid3yvuE R9qPkjuQ3Ljyw== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: pg_dump 17 produces files incompatible with older server versions From: Daniel Gustafsson In-Reply-To: Date: Wed, 2 Oct 2024 20:23:40 +0200 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <8C1019F1-2158-4404-9F12-F4505AF833E2@yesql.se> References: To: Sam Kidman X-Mailer: Apple Mail (2.3774.600.62) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 2 Oct 2024, at 07:23, Sam Kidman wrote: > Are there any other solutions to this issue? It could be quite > troublesome for us as we have a few different postgres server versions > in use in different applications but we use the same set of client > tools for all of them. This is per design of pg_dump, the documentation states the following: "it is not guaranteed that pg_dump's output can be loaded into a = server of an older major version =E2=80=94 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." Running the appropriate version of pg_dump for the target cluster, or = applying manual (or scripted) editing of the dump file is the option. -- Daniel Gustafsson