Re: [PATCH] Add support for displaying database service in psql prompt

Поиск
Список
Период
Сортировка
От Noah Misch
Тема Re: [PATCH] Add support for displaying database service in psql prompt
Дата
Msg-id 20250706161319.c1.nmisch@google.com
обсуждение исходный текст
Ответ на Re: [PATCH] Add support for displaying database service in psql prompt  (Greg Sabino Mullane <htamfids@gmail.com>)
Список pgsql-hackers
On Wed, Dec 18, 2024 at 03:17:36PM +0900, Michael Paquier wrote:
> Done.

This new PQservice() function from commit 4b99fed75 came up in the annual
exports.txt diff.  The standard in libpq has been to not clutter the API with
new functions that simply retrieve one PQconninfoOption value.  PQconninfo()
provides access to all those values in a generic way.  What do you think of
making psql use PQconninfo() for this, then removing PQservice()?  The rest of
the commit (adding the struct field, necessary for PQconninfo() to include the
value) looks good.



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