From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Dave Page <dpage(at)pgadmin(dot)org> |
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:53:03 |
Message-ID: | 9837222c0910200053r6fd53e66odf198b621934935a@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2009/10/20 Dave Page <dpage(at)pgadmin(dot)org>:
> 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.
Right, but it might be worth investigating using the API that's
available on the platform, if one is. It's a fairly simple operation
after all, so it won't take huge amounts of platform-specific code.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From | Date | Subject | |
---|---|---|---|
Next Message | marcin mank | 2009-10-20 08:31:42 | Re: per table random-page-cost? |
Previous Message | Dave Page | 2009-10-20 07:51:45 | Re: Application name patch - v2 |