Application name patch - v2

Поиск
Список
Период
Сортировка
От Dave Page
Тема Application name patch - v2
Дата
Msg-id 937d27e10910160458p77e631e7u20c1325e298a734f@mail.gmail.com
обсуждение исходный текст
Ответы Re: Application name patch - v2  (Peter Eisentraut <peter_e@gmx.net>)
Re: Application name patch - v2  (Dave Page <dpage@pgadmin.org>)
Список pgsql-hackers
I believe the attached patch is ready for review at the next
commitfest. It does the following:

- Adds a userset GUC called application_name.
- Allows application_name to be reported in log_line_prefix using %a.
- Includes application_name in CSV logs.
- Displays application_name in the output of pg_stat_activity and
pg_stat_get_activity().
- Adds a PQconnectdb connection string option called application_name
and corresponding envvar PGAPPLICATIONNAME to allow application_name
to be set during connection.
- Adds a PQconnectdb connection string option called
fallback_application_name to allow applications to specify a default
application_name value that can be overriden by PGAPPLICATIONNAME.
- Ensures that the application_name value is processed early in the
connection phase to ensure it can be used in connection log messages.
- Includes docs

I think that covers all the suggestions discussed over the last couple
of days, with the exception of the rejection of \n and similar
characters which I'm still not entirely convinced is worth the effort.
Any other opinions on that? Anything else that should be
added/changed?

--
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

Вложения

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

Предыдущее
От: Roger Leigh
Дата:
Сообщение: Re: Unicode UTF-8 table formatting for psql text output
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Trigger with WHEN clause (WIP)