Re: Application name patch - v2

From: Dave Page <dpage(at)pgadmin(dot)org>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Application name patch - v2
Date: 2009-10-19 10:16:55
Message-ID: 937d27e10910190316v4dbc0d5fu3b2829ffb4788515@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Updated patch attached, fixing a silly thinko.

On Fri, Oct 16, 2009 at 12:58 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
> 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
>

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

Attachment Content-Type Size
appname-v3.diff application/octet-stream 32.8 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2009-10-19 10:21:22 Re: Application name patch - v2
Previous Message Dave Page 2009-10-19 10:12:19 Re: Application name patch - v2