Re: proposal: option --application_name for psql

From: "Erik Rijkers" <er(at)xs4all(dot)nl>
To: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
Cc: "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: option --application_name for psql
Date: 2013-05-14 19:18:41
Message-ID: b9729765be907be308212d3f51b3680c.squirrel@webmail.xs4all.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, May 14, 2013 21:04, Pavel Stehule wrote:
> Hello
>
> we like to use psql in combination with bash - just like postgresql driver.
>
> Actually there is no simple possibility (from command line) to set
> application_name. We would to use different name than psql - for
> example "splunk", ...
>
> I tested PGAPPNAME, but it doesn't work.
>

It does work:

$ PGAPPNAME=splunk psql -c "select application_name from pg_stat_activity;"
application_name
------------------
splunk
(1 row)

But perhaps I misunderstood your intention?

Thanks,

Erik Rijkers

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2013-05-14 19:25:00 Re: proposal: option --application_name for psql
Previous Message Greg Smith 2013-05-14 19:13:30 Re: Move unused buffers to freelist