From: Jeff Davis <pgsql@j-davis.com>
To: Nico Williams <nico@cryptonector.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Pre-proposal: unicode normalized text
Date: Tue, 03 Oct 2023 15:34:44 -0700
Message-ID: <a41cfc7c3fcd00ed5d1008cc6fa810340f35fd47.camel@j-davis.com> (raw)
In-Reply-To: <ZRx2VcsWomTBcE+L@ubby21>
References: <f30b58657ceb71d5be032decf4058d454cc1df74.camel@j-davis.com>
<ZRsnnGfQ701AA091@ubby21>
<23edd434b490f74a82b564b8027b6a52059f8de7.camel@j-davis.com>
<ZRx2VcsWomTBcE+L@ubby21>
On Tue, 2023-10-03 at 15:15 -0500, Nico Williams wrote:
> Ugh, My client is not displying 'a' correctly
Ugh. Is that an argument in favor of normalization or against?
I've also noticed that some fonts render the same character a bit
differently depending on the constituent code points. For instance, if
the accent is its own code point, it seems to be more prominent than if
a single code point represents both the base character and the accent.
That seems to be a violation, but I can understand why that might be
useful.
>
> Almost every Latin input mode out there produces precomposed
> characters
> and so they effectively produce NFC.
The problem is not the normal case, the problem will be things like
obscure input methods, some kind of software that's being too clever,
or some kind of malicious user trying to confuse the database.
>
> That means that indices
> need to normalize strings, but tables need to store unnormalized
> strings.
That's an interesting idea. Would the equality operator normalize
first, or are you saying that the index would need to recheck the
results?
Regards,
Jeff Davis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: pgsql@j-davis.com, nico@cryptonector.com
Subject: Re: Pre-proposal: unicode normalized text
In-Reply-To: <a41cfc7c3fcd00ed5d1008cc6fa810340f35fd47.camel@j-davis.com>
References: <f30b58657ceb71d5be032decf4058d454cc1df74.camel@j-davis.com> <ZRsnnGfQ701AA091@ubby21> <23edd434b490f74a82b564b8027b6a52059f8de7.camel@j-davis.com> <ZRx2VcsWomTBcE+L@ubby21> <a41cfc7c3fcd00ed5d1008cc6fa810340f35fd47.camel@j-davis.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox