Don't trim excess whitespace in postgres #columns_for_distinct

Fixes #16623 which was introduced by https://github.com/rails/rails/commit/3d5a2019bcccc6fb01bee4811ca669f4383edb51