title: How to set application name in a Postgresql JDBC url?
body: <p>I want to set the application name of the connections of my application. So when I list the rows in <code>pg_stat_activity</code> I can have a non empty <code>application_name</code> column.</p>
  
  <p>I have setup the following JDBC url for connecting to my Postgresql database:</p>
  
  <pre><code>jdbc:postgresql://localhost:5435/MyDB?application-name=MyApp
  </code></pre>
  
  <p>I have tried also this url with no more success.</p>
  
  <pre><code>jdbc:postgresql://localhost:5435/MyDB?application_name=MyApp
  </code></pre>
  
  <p>What is the correct parameter name ?</p>
  
  <p>Here is my JDBC driver version:  <strong>9.1-901.jdbc4</strong></p>