title: ERROR: relation "table" does not exist
body: <p>I have a postgres database with a specific relation but when I use below code :</p>
  
  <pre><code>    String format = "select * from %s;";
      String query = String.format(format, TABLE_NAME);
      Map&lt;Long, String&gt; Info = new HashMap&lt;Long, String&gt;();
      validateConnection();//check for connection
      try {
          ResultSet rs = connection.createStatement().executeQuery(query);
          while (rs.next()) {
              Info.put(rs.getLong(COL_NAME_ID), rs.getString(COL_NAME_INFO));
          }
          return Info;
      } catch (SQLException e) {
          logger.warn("Could not return record count for {}: {}", TABLE_NAME, e.getMessage());
          return null;
      }
  </code></pre>
  
  <p>My logger say <code>Could not return record count for table: ERROR: relation "table" does not exist</code>.</p>
  
  <p>But when I query using Ubuntu terminal it works fine.</p>
  
  <p>what is the problem?</p>
  
  <p>thanks in advance,</p>