title: Connected to Postgresql error
body: <p>I am trying to connect to Postgres and this is the error message that I get:</p>
  
  <pre><code>[main] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost:5433/postgres
  [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=postgres, password=****}
  [main] WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection to query metadata
  org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
  </code></pre>
  
  <p>I have verified that username/password is fine in my hibernate.conf</p>
  
  <pre><code>    &lt;!-- Database connection settings --&gt;
      &lt;property name="connection.driver_class"&gt;org.postgresql.Driver&lt;/property&gt;
      &lt;property name="connection.url"&gt;jdbc:postgresql://localhost/postgres&lt;/property&gt;
      &lt;property name="connection.username"&gt;postgres&lt;/property&gt;
      &lt;property name="connection.password"&gt;*******&lt;/property&gt;
  </code></pre>
  
  <p>This is my pg_hba.conf</p>
  
  <pre><code># TYPE  DATABASE        USER            ADDRESS                 METHOD
  
  # IPv4 local connections:
  host    all             all             127.0.0.1/32            md5
  # IPv6 local connections:
  host    all             all             ::1/128                 md5
  # Allow replication connections from localhost, by a user with the
  # replication privilege.
  # host   postgres,replication    localhost   127.0.0.1/32    md5
  # host   postgres,replication    localhost   ::1/128     md5
  host     all     all     0.0.0.0/0   md5
  </code></pre>
  
  <p>I am working on Windows (Not UNIX). So please suggest how I can fix this issue.</p>
  
  <p>Thanks!</p>