BUG #15125: Cant set ApplicationName in Java... - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #15125: Cant set ApplicationName in Java...
Date
Msg-id 152166429966.9511.7804890125347174906@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #15125: Cant set ApplicationName in Java...  (Keith Fiske <keith.fiske@crunchydata.com>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      15125
Logged by:          Ezequiel Post
Email address:      ezekii.post@gmail.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!


pgsql-bugs by date:

Previous
From: Keith Fiske
Date:
Subject: Re: BUG #15123: pgAdmin 4 no error message
Next
From: RUI ZHU
Date:
Subject: Reports of Bugs