Re: Client application name

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Client application name
Дата
Msg-id 4AD498A1.4080609@dunslane.net
обсуждение исходный текст
Ответ на Client application name  (Dave Page <dpage@pgadmin.org>)
Ответы Re: Client application name  (Dave Page <dpage@pgadmin.org>)
Re: Client application name  (Dave Page <dpage@pgadmin.org>)
Список pgsql-hackers

Dave Page wrote:
> My questions to the group are:
>
> - Is my approach reasonable?
> - What interface should I include in libpq?
>
> On the second question, obviously the user can call SET to set a
> value, as I've done for now in psql, however in other DBMSs, it may be
> set in the connection string. My feeling would be to do that, and
> possibly add PQsetApplicationName(PGconn *conn, char *name) and char
> *PQapplicationName(PGconn *conn);. What do others think?
>
>   


Doing it with a GUC will not be nearly so useful as having it in the 
wire protocol, IMNSHO. Just one example: it wouldn't be present in 
connection records, because it wouldn't be set yet.

cheers

andrew


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Client application name
Следующее
От: Dave Page
Дата:
Сообщение: Re: Client application name