Re: Set application name from jdbc url - Mailing list pgsql-jdbc

From Sehrope Sarkuni
Subject Re: Set application name from jdbc url
Date
Msg-id CAH7T-ar-mdYZ0rEh6o3WkqHk0MXRwfvCqM2vQ1AdvxoP69xCvA@mail.gmail.com
Whole thread Raw
In response to Set application name from jdbc url  (Stéphan BEUZE <stephan.beuze@douane.finances.gouv.fr>)
Responses Re: [***] Re: Set application name from jdbc url  (Stéphan BEUZE <stephan.beuze@douane.finances.gouv.fr>)
List pgsql-jdbc
> What is the correct parameter name ?

Try "ApplicationName" [1]. Also, you can set it on the Connection
object after creation via the JDBC standard setClientInfo(...)
method[2].

[1]: https://github.com/pgjdbc/pgjdbc/blob/master/org/postgresql/core/v3/ConnectionFactoryImpl.java#L639
[2]:
http://docs.oracle.com/javase/7/docs/api/java/sql/Connection.html#setClientInfo%28java.lang.String,%20java.lang.String%29

-S


pgsql-jdbc by date:

Previous
From: Stéphan BEUZE
Date:
Subject: Set application name from jdbc url
Next
From: Stéphan BEUZE
Date:
Subject: Re: [***] Re: Set application name from jdbc url