Re: libpq: Add PQapplicationname() function

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: libpq: Add PQapplicationname() function
Дата
Msg-id CAKFQuwZucqaCncNFGqEzYnP2WWonEDv-uR2ycA1LCoAg=No5Tw@mail.gmail.com
обсуждение исходный текст
Ответ на libpq: Add PQapplicationname() function  ("songjinzhou" <tsinghualucky912@foxmail.com>)
Список pgsql-hackers
On Tuesday, April 29, 2025, songjinzhou <tsinghualucky912@foxmail.com> wrote:
Dear hackers, here is a libpq function: PQapplicationname(), I think it may be of some use. 

You really should provide at least one reasoned use case for why this should exist.
 

Looking forward to your reply, thank you.


This isn’t even the correct code to use for this.  PQparameterStatus is where you’d access application_name.  I don’t see a good reason in providing multiple ways to get access to the same data value.

David J.

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