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 1sw40S-001deW-Hf for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2024 18:23:25 +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 1sw40R-001iJ5-Ul for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2024 18:23:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sw40Q-001iIf-NF for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2024 18:23:23 +0000 Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sw40L-002DoJ-1B for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2024 18:23:22 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 095E613801CC; Wed, 2 Oct 2024 14:23:16 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Wed, 02 Oct 2024 14:23:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1727893396; x=1727979796; bh=DSGsjRiPG1SC+ljEQns1J+r1essWyIUWoxZf8uHbKw8=; b= QC8iaTeUTMelSdLq8m2WxmJEOl8zUvQ7AlSC/8R8/eJnc2h1eBgAjkVIQz5ev5NL aJ3lxAZH5BiRwSUFRZJMPvnSYi5thy0Ij6jzHOQ0yY2ICY07hE8bOmzV8Bs4a9rA YWLOgxhCM2QT09mm53HGQXEdnHnUFqKWNmNPNqNHjtum1AnPk86kdwUEvR7uchYa P0vXBzm49E81wR0OooytaqvnmOPksShG5SE2mUHW1aEy25aLcFWHTMoUK7QtlAb1 wCyWJ26glPdb6gsBWFs6t9E6pl4eCjVBiNA5Z0BRH45W4kglX2FQ2xxeZwuaJHjl 7ZACofOiq3mfTuWMg2U71g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1727893396; x= 1727979796; bh=DSGsjRiPG1SC+ljEQns1J+r1essWyIUWoxZf8uHbKw8=; b=i Ox4GuCCmjo8UUfszIAEb/rg81Z2kCPy30fyHUTwBqanhwFS7wfBUdWl7AGl69v5W 1h/jIig5FMO7bsY45s4S9GucVaZaKdZmKcaltkA4Cut7vyp+eMdJF31b96pJd0ya 153oNayYgEKxWTsHaWGMsGCdCb4o0VjCd2RUFP93ALMwKERDpVafeiwptGCtJUzi joRuGMVx86Xc17808DjcWbm9+i8Xmy7ZF8/G6kWi2yHJoh17rgcYCKJM8h2y6nmi Okibb5d1gn08A4dTTP+37vHHxjTf+M6Z3y/C/hFcVqcu9Lhpcl8+pJmZ8iQvSWGd ii8f6XKexktX9DwcMgp4Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdduledguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgg gfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhirghnucfmlhgrvhgv rhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrg htthgvrhhnpeelgeevkeekkeeuiefgtdevieeluefhfedufeetkeejffekjeeujeehgeeh geektdenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgv rhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepshgrmhesfhhrvghshhhordgtohhmpdhrtghpthhtohepphhg shhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Oct 2024 14:23:15 -0400 (EDT) Message-ID: <53980e64-4bac-44bb-8156-6f5e3fb27d27@aklaver.com> Date: Wed, 2 Oct 2024 11:23:14 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pg_dump 17 produces files incompatible with older server versions To: Sam Kidman , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/1/24 22:23, Sam Kidman wrote: > Hello > > We're developing a rails application and part of our development > workflow involves dumping out the database schema using pg_dump, which > is restored whenever we drop and create our development database. > > As of version 17 we now have SET transaction_timeout = 0 in the schema file. > > Unfortunately we use the latest version of the client tools (ie > pg_dump and kin) but we run the same database server version as we use > in production (12) and so now we're unable to import our database > schema with the error below: https://www.postgresql.org/docs/current/app-pgdump.html "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. " Use the Postgres 12 version of pg_dump to dump if you want to restore to Postgres 12 instance. > > ERROR: unrecognized configuration parameter "transaction_timeout" Did the above actually stop the restore? > > It might be easier for us if we could configure pg_dump to _not_ > output setting runtime parameters - they're not that important for the > use case of applying a schema to a database for local development. > > 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. > > Best, > -- Adrian Klaver adrian.klaver@aklaver.com