Re: Default libpq application name

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Default libpq application name
Дата
Msg-id 17989.1270662321@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Default libpq application name  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> I just emailed Dave Page and it seems we don't set a default application
> name in libpq.  Should we do:
>     extern char *argv[];
> and reference argv[0] in libpq to set a default application name?

No.  This is not portable and it's not a good idea even if it were.

The issue was discussed extensively when the patch was committed,
and does not need to be revisited now.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Default libpq application name
Следующее
От: Stefan Kaltenbrunner
Дата:
Сообщение: Re: Win32 timezone matching