re-introduce $sth->rows > 0 check which PostgreSQL needs to detect queries which doesn't return results (like create temporary table)