RE: BUG #15516: Identifier not quoted with uppercase letter (spanish Ñ) doesn't get transformed to lowercase (ñ)

From: "Calvo Arias, Francisco" <fcaa(at)tragsa(dot)es>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: RE: BUG #15516: Identifier not quoted with uppercase letter (spanish Ñ) doesn't get transformed to lowercase (ñ)
Date: 2018-11-23 09:04:55
Message-ID: 808ac80d913f41c0bd156d6a8c123d65@tragsa.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thank you very much for your clarification, Tom. (Also, I'm very sorry for not ending and signing my previous message properly. Shame on me, having being Thanksgivig Day!)

I think I'll submit a correction mentioning that ("PG's downcasing transform is only applied to single-byte characters") for last paragraph on "4.1.1. Identifiers and Key Words" in the documentation which states:
- "[...] unquoted names are always folded to lower case"
- "If you want to write portable applications you are advised to always quote a particular name or never quote it"

Regards,
Paco Calvo

-----Mensaje original-----
De: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Enviado el: jueves, 22 de noviembre de 2018 18:02
Para: Calvo Arias, Francisco <fcaa(at)tragsa(dot)es>
CC: pgsql-bugs(at)lists(dot)postgresql(dot)org
Asunto: Re: BUG #15516: Identifier not quoted with uppercase letter (spanish Ñ) doesn't get transformed to lowercase (ñ)

=?utf-8?q?PG_Bug_reporting_form?= <noreply(at)postgresql(dot)org> writes:
> When using an identifier not quoted which includes an uppercase letter
> (Spanish Ñ, Unicode U+00D1), it doesn't get transformed to lowercase
> (ñ, Unicode U+00F1) as expected.

PG's downcasing transform is only applied to single-byte characters.
So Ñ could be transformed in LATIN1 encoding, but not UTF8. There are various practical reasons why this is unlikely to change soon.

regards, tom lane

**********************************************************************************************
El consumo de papel es perjudicial para el medio ambiente. Por favor, téngalo en cuenta antes de imprimir este mensaje. AVISO LEGAL: Este mensaje y sus anexos pueden contener información confidencial o legalmente protegida. Está dirigido únicamente a la persona o entidad indicada como destinatarios del mensaje. Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. **********************************************************************************************

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2018-11-23 17:17:34 Re: BUG #15160: planner overestimates number of rows in join when there are more than 200 rows coming from CTE
Previous Message Thomas Kellerer 2018-11-23 07:11:41 Re: PostgreSQL v11 offline (portable) version libwinpthread-1.dll error