From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Collatability of type "name" |
Date: | 2018-12-12 06:09:10 |
Message-ID: | CA+TgmoZJ5_-0s8ekitepGxdzG12em0LOt9cKaPA9UpZRY_On_w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Dec 10, 2018 at 2:50 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> I feel like #2 is probably really the Right Thing,
I think so, too.
> Also, I think that either solution would lead to some subtle changes
> in semantics. For example, right now if you compare a name column
> to a text value, you get a text (collation-aware) comparison using
> the database's default collation. It looks like if name columns
> are marked with attcollation = 'C', that would win and the comparison
> would now have 'C' collation unless you explicitly override it with
> a COLLATE clause. I'm not sure this is a bad thing --- it'd be more
> likely to match the sort order of the index on the column --- but it
> could surprise people.
It's not great to change the semantics of stuff like this, but it
doesn't sound all that bad.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2018-12-12 06:10:00 | Re: Remove Deprecated Exclusive Backup Mode |
Previous Message | Surafel Temesgen | 2018-12-12 06:05:31 | Re: COPY FROM WHEN condition |