Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7Fhr-0001QU-7J for pgsql-general@arkaria.postgresql.org; Tue, 11 Jan 2022 11:52:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n7Fhq-0006o5-0x for pgsql-general@arkaria.postgresql.org; Tue, 11 Jan 2022 11:52:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7Fhp-0006nv-Jz for pgsql-general@lists.postgresql.org; Tue, 11 Jan 2022 11:52:49 +0000 Received: from srvimsva2.dst.dk ([91.208.143.64]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7Fho-00031P-0p for pgsql-general@postgresql.org; Tue, 11 Jan 2022 11:52:49 +0000 Received: from srvimsva2.dst.dk (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 89618104075 for ; Tue, 11 Jan 2022 12:52:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dst.dk; s=dmz20180119; t=1641901966; bh=TCTSG6OlzsnwBMqjylS0xlukW8R6wEhjVJw08rzzdhA=; h=From:To:Date; b=Qf74Ue7BKMlNWJmctf4FNCAEOXp404immlZmnNKdYOvD6LKiJmXc/p2XH9Ib8NmR9 592wfHg05OsYT078GiuYb33VcxPechZxJebWmC7Z2vLATlxLsGmtp61hxZNXVW3b4/ zx5Fopxi56MmkAqDMjBIwiYePCbu8crHbZ/N1AXg= Received: from srvimsva2.dst.dk (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7408C104073 for ; Tue, 11 Jan 2022 12:52:46 +0100 (CET) Received: from Sepo.dst.dk (unknown [192.168.64.12]) by srvimsva2.dst.dk (Postfix) with ESMTP for ; Tue, 11 Jan 2022 12:52:46 +0100 (CET) Received: from srvexc9.dst.local ([172.30.32.49]) by Sepo.dst.dk (JAMES SMTP Server 2.3.2-1) with SMTP ID 254 for ; Tue, 11 Jan 2022 12:52:44 +0100 (CET) Received: from srvexc8.dst.local (172.30.32.48) by srvexc9.dst.local (172.30.32.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Tue, 11 Jan 2022 12:52:44 +0100 Received: from srvexc8.dst.local ([fe80::9df8:5de5:1bf2:8b3b]) by srvexc8.dst.local ([fe80::9df8:5de5:1bf2:8b3b%2]) with mapi id 15.01.2242.008; Tue, 11 Jan 2022 12:52:43 +0100 From: Niels Jespersen To: "pgsql-general@postgresql.org" Subject: Folding of case of identifiers Thread-Topic: Folding of case of identifiers Thread-Index: AdgG3wvmcoDIyqZiR42sF8w8skHpSg== Date: Tue, 11 Jan 2022 11:52:43 +0000 Message-ID: Accept-Language: da-DK, en-US Content-Language: da-DK X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.30.33.38] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-TM-AS-GCONF: 00 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello all According to https://www.postgresql.org/docs/current/sql-syntax-lexical.htm= l, "Key words and unquoted identifiers are case insensitive." And "SQL iden= tifiers and key words must begin with a letter (a-z, but also letters with = diacritical marks and non-Latin letters) or an underscore (_). Subsequent c= haracters in an identifier or key word can be letters, underscores, digits = (0-9), or dollar signs ($)." So far so good. Non-latin letters are included, which I take to also includ= e the danish letters =E6=F8=E5/=C6=D8=C5.=20 However, name-folding is odd for these letters. Of these three create table= s, the two first succeed, the last one does not (G and g is equivalent, =C6= and =E6 is not).=20 create table =E6blegr=F8d (a int, k=F8n text); create table =C6blegr=D8d (a int, k=F8n text); create table =C6bleGr=D8d (a int, k=F8n text); Can anyone explain the logic that rules this.=20 Regards Niels Jespersen