Rename setup_cancel_handler in pg_dump

Поиск
Список
Период
Сортировка
От Yugo NAGATA
Тема Rename setup_cancel_handler in pg_dump
Дата
Msg-id 20240126094245.cf6718cc659273765f3ab69a@sraoss.co.jp
обсуждение исходный текст
Ответы Re: Rename setup_cancel_handler in pg_dump  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
Hi,

Attached is a simple patch to rename setup_cancel_handler()
in pg_dump/parallel.c. 

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. 

I guess there was no concerns when setup_cancel_handler in
pg_dump/parallel.c was introduced because the same name
function was not in fe_utils that could be used in common
between client tools.. The public setup_cancel_handler in
fe_utils was introduced in a4fd3aa719e, where this function
was moved from psql.

Regards,
Yugo Nagata

-- 
Yugo NAGATA <nagata@sraoss.co.jp>

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Yugo NAGATA
Дата:
Сообщение: Re: pg_column_toast_chunk_id: a function to get a chunk ID of a TOASTed value
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Use of backup_label not noted in log