Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2x1h-00023p-V9 for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Dec 2022 16:12:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p2x1g-0004vH-S1 for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Dec 2022 16:12:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2x1g-0004v7-0E for pgsql-hackers@lists.postgresql.org; Wed, 07 Dec 2022 16:12:04 +0000 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2x1c-0006qi-3v for pgsql-hackers@postgresql.org; Wed, 07 Dec 2022 16:12:03 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id 9B80A2B06799; Wed, 7 Dec 2022 11:11:56 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 07 Dec 2022 11:11:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1670429516; x= 1670436716; bh=2a4HMr4gHa543AsX6gxenp8b0ybv1pfzC5nCL9cMkLo=; b=P /B4agKbnnOXwjq3MCxaelk4gpPqQTp0syYTrMdQJLiTkvvWfSX7Njt0gpEBsQy+v nuE1yUJr+DmbHwZqFTUmmL8Lyf2ObDRTs56bt1D8/1tcmy3McA3py9vN5fdfKyvB e8ob58TDL0fyLFELyZfiOJq5L18XXDlDLtMFNmk302c1Oqi+etAoXQOtd/SLQPn5 Q4NDRNriLLedPiPTEPYmywX7k8bN7e3S/rNH1JSr75YnskRCMZ/MB6MWK1p/GqKu u30wshmouspCjyvLi2S6Z0mAveTt5CZa3itu7yJ8Vlp9IwulN4AB6BLRdE/vLZQ4 sqiM5zHBPWHrnLEzVZSMQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudekgdekhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhephfejudeuleefheeutddu feetjeevgeeiieeujeeuheefkedttdeuieeiieethfevnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 Dec 2022 11:11:54 -0500 (EST) Message-ID: <3c87f4db-560b-d9b7-77f4-bdb67e0d122b@enterprisedb.com> Date: Wed, 7 Dec 2022 17:11:52 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: Think-o in foreign key comments Content-Language: en-US To: Ian Lawrence Barwick , Paul Jungwirth Cc: Pgsql Hackers References: <6a7c7338-1aa2-4689-d171-0b0b294fdd84@illuminatedcomputing.com> From: Peter Eisentraut 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 03.12.22 05:59, Ian Lawrence Barwick wrote: > 2022年12月3日(土) 7:19 Paul Jungwirth : >> I noticed a few places in the new foreign key code where a comment says >> "the ON DELETE SET NULL/DELETE clause". I believe it should say "ON >> DELETE SET NULL/DEFAULT". >> >> These comments were added in d6f96ed94e7, "Allow specifying column list >> for foreign key ON DELETE SET actions." Here is a patch to correct them. > > LGTM. > > I do notice the same patch adds the function "validateFkOnDeleteSetColumns" > but the name in the comment preceding it is "validateFkActionSetColumns", > might as well fix that the same time. Committed with that addition and backpatched to PG15.