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 1romzt-003Mo9-KC for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Mar 2024 16:16:30 +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 1romzr-005hHg-T6 for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Mar 2024 16:16:28 +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 1romzr-005hHY-CD for pgsql-bugs@lists.postgresql.org; Mon, 25 Mar 2024 16:16:28 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1romzp-006Qmg-5m for pgsql-bugs@lists.postgresql.org; Mon, 25 Mar 2024 16:16:27 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id D80AB6E0A1; Mon, 25 Mar 2024 16:16:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1711383382; bh=IImsnOylpQluYbam1a3cjWOZCjFnaGEKYrf9x5sSt4A=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Qewd1zRWwZi/QafgkI/eamTkUokY2I+/hXRn0FipzFmn13KgR5FVKB0d0Z2PEqzwS QnX7tt6leE18M10aJer+07vkAl9Sxjm57h8+yjKCDf3Pq8uwLsn9t4aCugzpzEdWmk poP7jyuTbEuWO+XxvBoZTl3+bW94eIPzW7MCcvvzOV6lZ0E/vSyfIeb89MNFHPTpFY 0x493t2MsC9ruiqi0sKzp7HE2BYECpumfB3JU+/k2iAOypvEEm6ah+8yGNWyqD0mKD 0uR15/Lfn/QZVAtecF4O35lkLRERPFHYWWX/hwxf5RoD9vJlGACshufujWEszCJfgk 052nXI2p0HNOw== X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uRs_xwDb2zpn; Mon, 25 Mar 2024 16:16:22 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 79C716DFF6; Mon, 25 Mar 2024 16:16:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1711383382; bh=IImsnOylpQluYbam1a3cjWOZCjFnaGEKYrf9x5sSt4A=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Qewd1zRWwZi/QafgkI/eamTkUokY2I+/hXRn0FipzFmn13KgR5FVKB0d0Z2PEqzwS QnX7tt6leE18M10aJer+07vkAl9Sxjm57h8+yjKCDf3Pq8uwLsn9t4aCugzpzEdWmk poP7jyuTbEuWO+XxvBoZTl3+bW94eIPzW7MCcvvzOV6lZ0E/vSyfIeb89MNFHPTpFY 0x493t2MsC9ruiqi0sKzp7HE2BYECpumfB3JU+/k2iAOypvEEm6ah+8yGNWyqD0mKD 0uR15/Lfn/QZVAtecF4O35lkLRERPFHYWWX/hwxf5RoD9vJlGACshufujWEszCJfgk 052nXI2p0HNOw== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: BUG #18405: flaw in dump of inherited/dropped constraints From: Scott Ribe In-Reply-To: <2497244.1711383069@sss.pgh.pa.us> Date: Mon, 25 Mar 2024 10:16:11 -0600 Cc: pgsql-bugs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <866537D5-2EF9-4559-B4C6-AF16191A0D9E@elevated-dev.com> References: <18405-4ce10e802e8d3174@postgresql.org> <2497244.1711383069@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3774.500.171.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > thanks to Alvaro's work to treat NOT NULL the same way we've long > treated more general CHECK constraints. So there's no need to do > anything in v17, and I think changing the behavior in released > branches would draw more complaints than plaudits. (Also, if pg_dump > did try harder to duplicate this situation, the result would likely be > that the dump would fail to load into v17+.) I'd call that an acceptable resolution. My main concern is dump/restore = not being able to dump & restore an existing database, and this v17 = change fixes this case. (For background, this odd inheritance wasn't a = deliberate design, it was a (supposedly temporary) workaround for a = client bug.) >> ... So it looks like prior to 16, plain dumps had this >> problem, but custom format dumps did not. >=20 > Given the way pg_dump works, that's pretty hard to believe: you > should get bitwise the same result from pg_dump to text versus > pg_dump -Fc | pg_restore. Can you provide a self-contained test > showing a case where it doesn't? I will re-run tests when I get a bit of time--it is possible I confused = versions or schemas somewhere along the line of switching back and = forth.=