drush-ops/drush — pull request #604 by grisendo (2014-04-25 11:23:53+00:00)
Title: PostgreSQL not returning original query in query_format method.

The query_format method transforms $query if given $query is 'show tables;' (or with other case), but otherwise, it returns nothing. This makes listTables return an empty list of tables, and --structure-tables becames empty, so all database is dump, with all data. Also, that generated a PHP warning trying to find an element in a NULL array with in_array.