prepareRefreshTypeQueries();
}
private void loadTypes() throws IOException, NoticeException {
Timer timer = new Timer();
//Load types
String typeSQL = PgType.INSTANCE.getSQL(serverVersion);
List<PgType.Row> pgTypes = queryResults(typeSQL, PgType.Row.class);
//Load attributes
String attrsSQL = PgAttribute.INSTANCE.getSQL(serverVersion);
List<PgAttribute.Row> pgAttrs = queryResults(attrsSQL, PgAttribute.Row.class);
//Load procs
String procsSQL = PgProc.INSTANCE.getSQL(serverVersion);
List<PgProc.Row> pgProcs = queryResults(procsSQL, PgProc.Row.class);
logger.fine("query time: " + timer.getLap() + "ms");
//Update the registry with known types
registry.update(pgTypes, pgAttrs, pgProcs);
logger.fine("load time: " + timer.getLap() + "ms");
}