From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ezekii.post@gmail.com
Subject: BUG #15125: Cant set ApplicationName in Java...
Date: Wed, 21 Mar 2018 20:31:39 +0000
Message-ID: <152166429966.9511.7804890125347174906@wrigleys.postgresql.org> (raw)
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!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, ezekii.post@gmail.com
Subject: Re: BUG #15125: Cant set ApplicationName in Java...
In-Reply-To: <152166429966.9511.7804890125347174906@wrigleys.postgresql.org>
References: <152166429966.9511.7804890125347174906@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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