Don't trim excess whitespace in columns_for_distince in pg

Fixes #16623