does anyone have suggestions about how to do an EXPLAIN on prepared statements?
I thought that one way would be to get the first element from the list returned by sql/format
and do something like this:
(jdbc/query (conn) "PREPARE f() AS SELECT * FROM table")
Execution error (PSQLException) at org.postgresql.core.v3.QueryExecutorImpl/receiveErrorResponse (QueryExecutorImpl.java:2497).
ERROR: syntax error at or near ")"
Position: 11
which works fine with psql directly