Skip site navigation (1) Skip section navigation (2)

Re: 9.0 and pg_stat_activity.application_name

From: Kris Jurka <books(at)ejurka(dot)com>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: 9.0 and pg_stat_activity.application_name
Date: 2010-12-25 07:09:35
Message-ID: alpine.BSO.2.00.1012250208290.26018@leary.csoft.net (view raw or flat)
Thread:
Lists: pgsql-jdbc

On Thu, 1 Jul 2010, Kris Jurka wrote:

> On Wed, 30 Jun 2010, Thomas Kellerer wrote:
>
>> will there be a way in the upcoming 9.0 driver to set the new 
>> application_name property for pg_stat_activity?
>
> When implemented I imagine that it will be able to be set at connection start 
> via a URL or datasource parameter and then at runtime by 
> Connection.setClientInfo("ApplicationName", "My App").
>

I have implemented this.  You can now set application_name on connection 
startup with an ApplicationName URL parameter and it can be set 
dynamically with Connection.setClientInfo.

Kris Jurka

In response to

Responses

pgsql-jdbc by date

Next:From: Kris JurkaDate: 2010-12-25 22:32:25
Subject: Re: refreshRow is slow
Previous:From: Degrassi FrancescoDate: 2010-12-22 21:09:00
Subject: Re: Postgresql XA prepare() method behaviour

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group