Re: Potentially misleading name of libpq pass phrase hook

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Potentially misleading name of libpq pass phrase hook
Дата
Msg-id 11424.1589672836@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Potentially misleading name of libpq pass phrase hook  (Daniel Gustafsson <daniel@yesql.se>)
Ответы Re: Potentially misleading name of libpq pass phrase hook  (Andrew Dunstan <andrew.dunstan@2ndquadrant.com>)
Список pgsql-hackers
Daniel Gustafsson <daniel@yesql.se> writes:
>> On 16 May 2020, at 03:56, Michael Paquier <michael@paquier.xyz> wrote:
>> Agreed.  PQsslKeyPassHook_<library>_type sounds fine to me as
>> convention.  Wouldn't we want to also rename PQsetSSLKeyPassHook and
>> PQgetSSLKeyPassHook, appending an "_OpenSSL" to both?

> Yes, I think we should.  The attached performs the rename of the hook functions
> and the type, and also fixes an off-by-one-'=' in a header comment which my OCD
> couldn't unsee.

The patch as committed missed renaming PQgetSSLKeyPassHook() itself,
but did rename its result type, which seemed to me to be clearly
wrong.  I took it on myself to fix that up, and also to fix exports.txt
which some of the buildfarm insists be correct ;-)

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] fix GIN index search sometimes losing results
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pg_bsd_indent and -Wimplicit-fallthrough