pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
9.0 and pg_stat_activity.application_name
5+ messages / 3 participants
[nested] [flat]

* 9.0 and pg_stat_activity.application_name
@ 2010-06-30 17:01  Thomas Kellerer <spam_eater@gmx.net>
  0 siblings, 1 reply; 5+ messages in thread

From: Thomas Kellerer @ 2010-06-30 17:01 UTC (permalink / raw)
  To: pgsql-jdbc

Hi,

will there be a way in the upcoming 9.0 driver to set the new application_name property for pg_stat_activity?

If yes, how will this work?

Regards
Thomas




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: 9.0 and pg_stat_activity.application_name
@ 2010-07-02 01:15  Kris Jurka <books@ejurka.com>
  parent: Thomas Kellerer <spam_eater@gmx.net>
  0 siblings, 2 replies; 5+ messages in thread

From: Kris Jurka @ 2010-07-02 01:15 UTC (permalink / raw)
  To: Thomas Kellerer <spam_eater@gmx.net>; +Cc: pgsql-jdbc



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?

Not as of yet, but it hasn't been finalized either.  For the moment it 
must be SET like any other GUC option.

> If yes, how will this work?
>

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

Kris Jurka



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: 9.0 and pg_stat_activity.application_name
@ 2010-07-02 06:36  Thomas Kellerer <spam_eater@gmx.net>
  parent: Kris Jurka <books@ejurka.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Thomas Kellerer @ 2010-07-02 06:36 UTC (permalink / raw)
  To: pgsql-jdbc

Kris Jurka, 02.07.2010 03:15:
>> will there be a way in the upcoming 9.0 driver to set the new
>> application_name property for pg_stat_activity?
>
> Not as of yet, but it hasn't been finalized either. For the moment it
> must be SET like any other GUC option.
>
>> If yes, how will this work?
>>
> 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").
>

OK, thanks for the feedback.

Thomas




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: 9.0 and pg_stat_activity.application_name
@ 2010-12-25 07:09  Kris Jurka <books@ejurka.com>
  parent: Kris Jurka <books@ejurka.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Kris Jurka @ 2010-12-25 07:09 UTC (permalink / raw)
  To: Thomas Kellerer <spam_eater@gmx.net>; +Cc: 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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: 9.0 and pg_stat_activity.application_name
@ 2012-02-28 22:23  akbarstatx <dennis@kabonkulator.com>
  parent: Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 5+ messages in thread

From: akbarstatx @ 2012-02-28 22:23 UTC (permalink / raw)
  To: pgsql-jdbc

can you provide an example of the URL connection parameter needed to set the
application name?  I have tried both ?ApplicaitonName=webapp and
?application_name=webapp but neither seems to working.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/9-0-and-pg-stat-activity-application-name-tp2175653p5523455....
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2012-02-28 22:23 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-06-30 17:01 9.0 and pg_stat_activity.application_name Thomas Kellerer <spam_eater@gmx.net>
2010-07-02 01:15 ` Kris Jurka <books@ejurka.com>
2010-07-02 06:36   ` Thomas Kellerer <spam_eater@gmx.net>
2010-12-25 07:09   ` Kris Jurka <books@ejurka.com>
2012-02-28 22:23     ` akbarstatx <dennis@kabonkulator.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox