Fixed #columns_for_distinct of postgresql adapter