From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Magnus Hagander <magnus(at)hagander(dot)net> |
Cc: | "Massa, Harald Armin" <chef(at)ghum(dot)de>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Application name patch - v2 |
Date: | 2009-10-20 07:51:45 |
Message-ID: | 937d27e10910200051u443a88d3o695b801141ed1196@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Oct 19, 2009 at 9:34 PM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> 2009/10/19 Dave Page <dpage(at)pgadmin(dot)org>:
>> On Mon, Oct 19, 2009 at 3:42 PM, Massa, Harald Armin <chef(at)ghum(dot)de> wrote:
>>>
>>> Would'nt this also make sense for PostgreSQL? That is, when no environment
>>> is set, and no SET-command is issued, that the application name becomes the
>>> default?
>>
>> That needs to be set by the application. As discussed previously,
>> there's no way for libpq to get at argv[0].
>
> Um, that has to be platform dependent, no? On windows for example, you
> can use GetCommandLine().
Yeah, and there's a similar API on *BSD I believe, but nothing standard.
--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com
PGDay.EU 2009 Conference: http://2009.pgday.eu/start
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2009-10-20 07:53:03 | Re: Application name patch - v2 |
Previous Message | Heikki Linnakangas | 2009-10-20 07:33:56 | Re: Hot standby, pausing recovery |