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 1v2A5K-000uja-7b for pgsql-general@arkaria.postgresql.org; Fri, 26 Sep 2025 15:10:10 +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 1v2A5H-002l9i-Ml for pgsql-general@arkaria.postgresql.org; Fri, 26 Sep 2025 15:10:08 +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 1v2A5G-002l95-RX for pgsql-general@lists.postgresql.org; Fri, 26 Sep 2025 15:10:08 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1v2A5E-0002pk-1f for pgsql-general@postgresql.org; Fri, 26 Sep 2025 15:10:06 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 769A3EC0203; Fri, 26 Sep 2025 11:10:04 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Fri, 26 Sep 2025 11:10:04 -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=1758899404; x=1758985804; bh=5+FVkAsMl2njmoB+WK5RHensvtcNS2+UlQ0UGOiMKSw=; b= Kyc6GYZNeDk1E3yiyLIaTg5Q32cKhJii4D3jjV09BAqEENNNXVyodMKl6/F7tPGT UHdXmLRYbDmPbOeGamHKhEtKYzAbkuEHTX2P7ff/FSINsPTXItWDQgt1UvcFGtRR MmRZdUHSAKzJ/D9KiUx14Rqf4WCuKnZD08aReax2ZCHQUYohcbW5MDbbg6dCZGou 23PAFhap/uf1BMKdcjYbFlMoKO3b6vYurRnUiYYjpRlNCJQ2fDYw3jyYVfskTrKZ dMvb7s5nI8H0TQGbunJ9lW8Ofyiqr/3ma7qWhnlN8jGtrDLnSE5chuTQPjMUVEXf rjzUqrmAIreCgKfzbpMeag== 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-sender :x-me-sender:x-sasl-enc; s=fm2; t=1758899404; x=1758985804; bh=5 +FVkAsMl2njmoB+WK5RHensvtcNS2+UlQ0UGOiMKSw=; b=y5f3ScnIgzahRVNXc jqCulqkVB43fVu3E5qvA6caYB+yGRys1KN7zPD9Ryy2c5EhcwdIk1nK+0HTf1AMb JnGHLPpDfwi1N0wvF/sOzH1Z4aSoAG4qzwH6J9QuM7wbDt7ipmFmGzMTTteIoSbv f685j8b+EN6vFOUITPwGDbZEKN1x1uJ+gLSJvMqljAiCNaYnirQLQOmMv6xVHk99 zCQhNJAAieYBWZC3uQ+PSiuoN/phuQpypKnmUYH0cq1HNcFy+GlkSKqOeE/Jxd35 itXshaBG51lcq5RXTLxgtOxpud9LzyuFolsHnujFzITFo8liw7qhXvhNjflKaEM4 Gb0qA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdeileeilecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughrihgrnhcu mfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqne cuggftrfgrthhtvghrnhepffelgeeifefgveduhedthfekuedtffejveegffegjeevtdeh gfduieetfeehjeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspghr tghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghshhhishhhrd hmuhhkhhgvrhhjvggvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgv nhgvrhgrlhesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 26 Sep 2025 11:10:03 -0400 (EDT) Message-ID: Date: Fri, 26 Sep 2025 08:10:03 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Downgrade pgsql 17 to pgsql 12 question To: Ashish Mukherjee , pgsql-general@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 9/26/25 05:18, Ashish Mukherjee wrote: > Hello, > > I have a strange requirement to downgrade from pgsql 17 to pgsql 12. > This is because we found in production certain incompatibilities between > both versions for our database. It should have been caught in testing > but was not. > What are the incompatibilities? Might be easier to deal with those then doing the below. > The clean way seems to be text file dump and restore but this would be > too huge and too slow for our database of 3T. If I use pg_dump v17 and > then restore with pg_restore v 17 on a pgsql v12 database, is there any > risk? I tried a small test with a bunch of tables and it worked, but am > wondering about the pitfalls. I am restoring from the directory format dump. > > When I do dump/restore like this for a test table, I get the following > errors during restore but the table gets restored fine. > Any input would be appreciated. > > Regards, > Ashish -- Adrian Klaver adrian.klaver@aklaver.com