@Override
  public String getJdbcUrl(String hostAddress) {
    return "jdbc:postgresql://" + hostAddress + ":5432/metastore";
  }
JUnit TestRule for Postgres metastore with TPCDS schema and stat information.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/dbinstall/rules/PostgresTPCDS.java