I'm having a lot of problems with this combination, it seems be problem of includes/database.pgsql.inc... I don't know, can anyone help me? This is the error that shows me:

    * warning: pg_query(): Query failed: ERROR: column "acidfree.weight" must appear in the GROUP BY clause or be used in an aggregate function in /home/www/drupal/includes/database.pgsql.inc on line 84.
    * user warning: query: SELECT count(n.nid) FROM node n INNER JOIN acidfree on n.nid = acidfree.aid INNER JOIN acidfree_hierarchy ON acidfree_hierarchy.child = acidfree.aid WHERE parent = 3 ORDER BY weight ASC, aid DESC in /home/www/drupal/includes/database.pgsql.inc on line 103.