execute
Runs the SQL and discards what it produced - DDL, SET, several statements separated by ; in one round trip, which PostgreSQL wraps in an implicit transaction.
It speaks the Simple Query Protocol, which binds nothing: an @name reaches the server as literal text. A hand-written INSERT, UPDATE or DELETE goes through executeUpdate.
Parameters
ignoreRows
Whether a statement returning rows may pass; the rows are discarded either way. Set it for a script where a SELECT is legitimate, as pg_dump's SELECT pg_catalog.setval(...) is.
Throws
UNEXPECTED_RESULT where a statement returned rows and ignoreRows is false.