Re: Application name patch - v2 - Mailing list pgsql-hackers

From daveg
Subject Re: Application name patch - v2
Date
Msg-id 20091020214717.GS18626@sonic.net
Whole thread Raw
In response to Re: Application name patch - v2  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Application name patch - v2
List pgsql-hackers
On Tue, Oct 20, 2009 at 12:16:42PM -0400, Tom Lane wrote:
> Magnus Hagander <magnus@hagander.net> writes:
> > Also, how many platforms can't we do this on? If we have BSD and
> > Windows covered already. on linux, I believe you can easily read it
> > out of /proc/self/cmdline, no?
> 
> Writing a pile of platform-specific code for this is simply insane from
> a support point of view.  The feature is NOT worth it.  Especially not
> since the typical result will be something quite uninformative like
> "psql" or "java".  The cases that are actually useful are the ones where
> the application sets it.  I don't think we should have a default at all
> --- you don't set it, you don't get a name.

-1

I'd like a default, especially for psql, to help identify interactive sessions.

-dg 

-- 
David Gould       daveg@sonic.net      510 536 1443    510 282 0869
If simplicity worked, the world would be overrun with insects.


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: alpha2 release notes
Next
From: daveg
Date:
Subject: Re: Postgres server goes in recovery mode repeteadly