I want to capture the cost numbers from the query plan you get when you \'Explain\' a query. Is there any way to get at this data inside of a Java ResultSet(or similar obje
Sure, just run it as a regular statement:
Statement stmt = connection.createStatement(); ResultSet rs = stmt.executeQuery("explain analyze select * from foo"); while (rs.next()) { System.out.println(rs.getString(1)); }