From: | Yugo NAGATA <nagata(at)sraoss(dot)co(dot)jp> |
---|---|
To: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Rename setup_cancel_handler in pg_dump |
Date: | 2024-02-01 01:21:27 |
Message-ID: | 20240201102127.97ec2569be65629ee8879a51@sraoss.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, 30 Jan 2024 13:44:28 +0100
Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:
> > On 26 Jan 2024, at 01:42, Yugo NAGATA <nagata(at)sraoss(dot)co(dot)jp> 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.
>
> 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.
Thank you for looking into it!
> -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?
Agreed. Here is a updated patch.
Regards,
Yugo Nagata
>
> --
> Daniel Gustafsson
>
--
Yugo NAGATA <nagata(at)sraoss(dot)co(dot)jp>
Attachment | Content-Type | Size |
---|---|---|
v2_pg_dump_setup_cancel_handler.patch | text/x-diff | 1.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Hayato Kuroda (Fujitsu) | 2024-02-01 01:47:11 | RE: speed up a logical replica setup |
Previous Message | Peter Smith | 2024-02-01 00:27:43 | Re: src/bin/pg_upgrade/t/004_subscription.pl test comment fix |