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 1uxOuu-00Dukw-4L for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Sep 2025 11:59:44 +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 1uxOuq-005lsF-37 for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Sep 2025 11:59:40 +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 1uxOup-005ls7-GU for pgsql-hackers@lists.postgresql.org; Sat, 13 Sep 2025 11:59:40 +0000 Received: from fout-b8-smtp.messagingengine.com ([202.12.124.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uxOul-000aNB-0N for pgsql-hackers@lists.postgresql.org; Sat, 13 Sep 2025 11:59:39 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id 5F82C1D00238; Sat, 13 Sep 2025 07:59:33 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Sat, 13 Sep 2025 07:59:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm3; t=1757764773; x= 1757851173; bh=vspL19nPUnXElyiEVRulTmJgz0kd+6XS8eDpSwNA6XU=; b=c Oh4TIfFCxnU9yVoTlMYYkaAK/PE0tJMwyK4aeIN1h7+nM3telM+WL0mVn1E+dtBM bgzZ09W7XwUQjucglfn5sAtv4cwIdGkP2vOh59yULiwfw1mF7XojSVgU357hgOuW 3LE5i+gbflnrfoXIkTNEd6nyYiFTDn4OMHOrtZeAmUdMoDMbBErHSlDO9jb4Y91j cm0xRabhg1B7aBYu7sPskyX4Slp3aGvVJWA18xLoo7LqmGdUroRiAbQ/VUnV+Qxx s3dS8+J30TSEU1iSrfdZzbElc3+KgMnKpaaFuGewRSBGnoP9Zow4piaTQjlFCTgv V7pnWyIfVaLGkkaHv01mA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1757764773; x=1757851173; bh=v spL19nPUnXElyiEVRulTmJgz0kd+6XS8eDpSwNA6XU=; b=HiLiJ3nXcorE7B88u 74LUntO3IIcYzIVes5AP2PVDoXey6209DuX85WQdRk2yxqwEQ0wbSHxy6l1o5fjz BVYgEHcB03MhrjUPh5BW2QCfEXPgSh4IV3rlJQIx0zJN020O+Xx8T9sX9/FXSnBe 7LN7SlIL3sr5SI5oplyP/4U96yy6ossqe0t+1GiGzkXQm+npb3E8kU/OvFePB/jl y8iNHd4wljBdQvnVM7Hh8dL4bq7LnXegm7T8RYlS+lORAkRgRP9CembpB+UzBS/t JxDFd2bE/UyrxgiaIgKW2Rz98Ty5tS5Uggi/+43gZGw+NiMnmSlKCVrYj0r8NvTw DZV7g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdefudekjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpemllhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgeqnecuggftrf grthhtvghrnhepteeuvdehffekvefgueehveetveekgfegtddtueefueehuddutdfhfeff hfejfeffnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvges khhurhhilhgvmhhurdguvgdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepjhhirghnrdhunhhivhgvrhhsrghlihhthiesghhmrghilhdrtgho mhdprhgtphhtthhopehnohgrhheslhgvrggusghorghtrdgtohhmpdhrtghpthhtohepph hgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 13 Sep 2025 07:59:32 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1757764769; bh=OyOTKsttVKjCa2/Yh2qSpARhmFabspEljk78yXy7A3Q=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=D+htwODYHRwqJCRyGKHNUGEDQ/N/nZ+a9lKZbH/HHrvySbfNH0l18KMamZsV1JZDU zOjzw3WPkb20YvDwplIu3pWwWZobPsP5Cr1v8seiV1CtaysRK9Fy7CQwbsVVOXcWRF THxfhlm3hkd6s1/JL2Z0Ct4YQdHl/GOh/Oovx4ywneCLGY7sdf64yBC1/dzmS9vfZB tpI2wWZ9xXbmZtRXYjPXRETFI9+cf5sK2zeYxLMiFRPTGib1rLhlN9X5GnFolGFFNS 3L4vhmmQqcd9gZ5xLsWQUkZmTsDnRWxa2yI/MmevCG02UhFUU+3P0R8ZJZhQgxcy1c YStx7I52RMfzg== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 634FD6D; Sat, 13 Sep 2025 13:59:29 +0200 (CEST) Date: Sat, 13 Sep 2025 13:59:29 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Noah Misch Cc: jian he , PostgreSQL Hackers Subject: Re: pg_dump does not dump domain not-null constraint's comments Message-ID: <202509131159.p74ngjfov4l6@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20250913020233.fa.nmisch@google.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Sep-12, Noah Misch wrote: > The last argument gives the dump object on which the comment has a dependency. > Since this is the case of a separately-dumped constraint, the comment needs to > depend on that constraint (coninfo), not on the domain (tyinfo): > > - coninfo->dobj.catId, 0, tyinfo->dobj.dumpId); > + coninfo->dobj.catId, 0, coninfo->dobj.dumpId); > > I didn't encounter a failure from this, but sufficient restore parallelism > might reach a failure. A failure would look like a "does not exist" error in > the COMMENT command, due to the constraint not yet existing. > dumpTableConstraintComment() is an older case that optimally handles the last > dumpComment() arg. Sounds sane. > In the absence of objections, I'll make it so. Please do, thanks. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/