Re: Application name patch - v2

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-19 20:34:57
Message-ID: 9837222c0910191334i54c32742v9122e067dfad6369@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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().

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2009-10-19 20:39:44 Re: LATERAL
Previous Message David E. Wheeler 2009-10-19 19:52:58 Re: Controlling changes in plpgsql variable resolution