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 1rUnTi-00D4O7-FK for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Jan 2024 12:44:38 +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 1rUnTh-005ITz-47 for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Jan 2024 12:44:37 +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 1rUnTg-005ITq-Qw for pgsql-hackers@lists.postgresql.org; Tue, 30 Jan 2024 12:44:36 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rUnTd-0049EO-DD for pgsql-hackers@postgresql.org; Tue, 30 Jan 2024 12:44:35 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 8E99F2FE7FFC for ; Tue, 30 Jan 2024 13:44:29 +0100 (CET) Received: from s934.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 7FABA2E2C173; Tue, 30 Jan 2024 13:44:29 +0100 (CET) Received: from s470.loopia.se (unknown [172.22.191.5]) by s934.loopia.se (Postfix) with ESMTP id 7DB197CEA3A; Tue, 30 Jan 2024 13:44:29 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.01 X-Spam-Level: X-Spam-Status: No, score=-1.01 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=disabled Received: from s981.loopia.se ([172.22.191.5]) by s470.loopia.se (s470.loopia.se [172.22.190.34]) (amavisd-new, port 10024) with LMTP id KoMBNAYpKlKV; Tue, 30 Jan 2024 13:44:29 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from smtpclient.apple (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s981.loopia.se (Postfix) with ESMTPSA id 05CE622B16B4; Tue, 30 Jan 2024 13:44:29 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.4\)) Subject: Re: Rename setup_cancel_handler in pg_dump From: Daniel Gustafsson In-Reply-To: <20240126094245.cf6718cc659273765f3ab69a@sraoss.co.jp> Date: Tue, 30 Jan 2024 13:44:28 +0100 Cc: PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <8F0B5F18-59FE-46F0-8270-C7B4B6C342EB@yesql.se> References: <20240126094245.cf6718cc659273765f3ab69a@sraoss.co.jp> To: Yugo NAGATA X-Mailer: Apple Mail (2.3696.120.41.1.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 26 Jan 2024, at 01:42, Yugo NAGATA wrote: > I am proposing it because there is a public function with > the same name in fe_utils/cancel.c. I know pg_dump/parallel.c > does not include fe_utils/cancel.h, so there is no conflict, > but I think it is better to use different names to reduce > possible confusion.=20 Given that a "git grep setup_cancel_hander" returns hits in pg_dump = along with other frontend utils, I can see the risk of confusion. -setup_cancel_handler(void) +pg_dump_setup_cancel_handler(void) We don't have any other functions prefixed with pg_dump_, based on the = naming of the surrounding code in the file I wonder if set_cancel_handler is a = more appropriate name? -- Daniel Gustafsson