BUG #15125: Cant set ApplicationName in Java...

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: ezekii(dot)post(at)gmail(dot)com
Subject: BUG #15125: Cant set ApplicationName in Java...
Date: 2018-03-21 20:31:39
Message-ID: 152166429966.9511.7804890125347174906@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 15125
Logged by: Ezequiel Post
Email address: ezekii(dot)post(at)gmail(dot)com
PostgreSQL version: 9.6.8
Operating system: Debian Jessie
Description:

Hello, I'm trying to set ApplicationName via JDBC driver, but the
application_name never changes.
Code:
@Override
@Transactional
public Connection getConnection() throws SQLException {
Properties props = new Properties();
props.put("user", "postgres");
props.put("password", "admin");
props.put("ApplicationName", "wtha");
Connection connection =
DriverManager.getConnection("jdbc:postgresql://localhost:5433/TESTE",
props);
connection.setClientInfo("ApplicationName", "wth");
return connection;
}

Tried with ?ApplicationName=any, but don't work too..
Any help would be appreciate, thanks!

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message RUI ZHU 2018-03-22 03:53:04 Reports of Bugs
Previous Message Keith Fiske 2018-03-21 20:30:00 Re: BUG #15123: pgAdmin 4 no error message