public Map<String, String> getDataSourceProperties() {
    Map<String, String> map = new HashMap<>();

    switch (dbType){
    case MYSQL:
      map.put("allowMultiQueries", "true");
      map.put("rewriteBatchedStatements", "true");
      break;
    case POSTGRES:
      map.put("reWriteBatchedInserts", "true");
      break;
    default:
      break;
    }
    return map;
  }
Get datasource properties for connection pools
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DatabaseProduct.java