The PDOSQLExecTask could benefit from having formatters, similar to the way that the PHPUnit system works.
Here's an example:
<pdo url="pgsql:host=localhost dbname=test">
<fileset dir="sqlfiles">
<include name="*.sql"/>
</fileset>
<!-- xml formatter -->
<formatter type="xml" output="output.xml"/>
<!-- custom formatter -->
<formatter classname="path.to.CustomFormatterClass">
<param name="someClassAttrib" value="some-value"/>
</formatter>
<!-- No output file + usefile=false means it goes to phing log -->
<formatter type="plain" usefile="false" />
</pdo>