Redundant strlen(query) in get_rel_infos

Поиск
Список
Период
Сортировка
От Peter Smith
Тема Redundant strlen(query) in get_rel_infos
Дата
Msg-id CAHut+PshfqoGfFz6joYVCdqt9uM-UO2RK+edD6mfFPx3OmUt1g@mail.gmail.com
обсуждение исходный текст
Ответы Re: Redundant strlen(query) in get_rel_infos  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Hi.

While reviewing another patch to the file info.c, I noticed there seem
to be some unnecessary calls to strlen(query) in get_rel_infos()
function.

i.e. The query is explicitly initialized to an empty string
immediately prior, so why the strlen?

PSA patch for this.

------
Kind Regards,
Peter Smith.
Fujitsu Australia

Вложения

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

Предыдущее
От: Peter Smith
Дата:
Сообщение: Re: [PoC] pg_upgrade: allow to upgrade publisher node
Следующее
От: "Wei Wang (Fujitsu)"
Дата:
Сообщение: RE: [PoC] pg_upgrade: allow to upgrade publisher node