Re: application_name in process name? - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: application_name in process name?
Date
Msg-id e5e288ae-5584-f35a-3e49-97d630192d5f@BlueTreble.com
Whole thread Raw
In response to Re: application_name in process name?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: application_name in process name?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 7/13/16 12:07 PM, Tom Lane wrote:
> Mike Blackwell <mike.blackwell@rrd.com> writes:
>> There are times when it would be useful to have the application_name
>> connection parameter displayed in the process name - and thus in ps and
>> pg_top - in addition to the user and database name.
>
>> Would there be any downside to this?
>
> In a lot of situations ("top" for instance) only a limited number of
> characters can be displayed from a process title.  I'm hesitant to add
> fields to that string that we don't really need.

Could we make this configurable, similar to log_line_prefix?
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)   mobile: 512-569-9461



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: Constraint merge and not valid status
Next
From: Craig Ringer
Date:
Subject: Re: One process per session lack of sharing