Index: includes/database.pgsql.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/database.pgsql.inc,v retrieving revision 1.68.2.1 diff -u -r1.68.2.1 database.pgsql.inc --- includes/database.pgsql.inc 7 Feb 2008 10:17:26 -0000 1.68.2.1 +++ includes/database.pgsql.inc 8 Mar 2008 13:17:22 -0000 @@ -418,11 +418,15 @@ * @return SQL query with the DISTINCT wrapper surrounding the given table.field. */ function db_distinct_field($table, $field, $query) { - $field_to_select = 'DISTINCT ON ('. $table .'.'. $field .") $table.$field"; - // (?