Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qoUMd-001SKa-NT for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Oct 2023 19:50:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qoUMb-00HS95-4r for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Oct 2023 19:50:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qoUMa-00HS8g-R0 for pgsql-hackers@lists.postgresql.org; Thu, 05 Oct 2023 19:50:25 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qoUMZ-000Dut-Gq for pgsql-hackers@postgresql.org; Thu, 05 Oct 2023 19:50:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 395JnbWq2816609; Thu, 5 Oct 2023 15:49:37 -0400 From: Tom Lane To: Nico Williams cc: Robert Haas , Isaac Morland , Jeff Davis , Chapman Flack , pgsql-hackers@postgresql.org Subject: Re: Pre-proposal: unicode normalized text In-reply-to: References: <43864caecd65d02081d623d05ccc1683@anastigmatix.net> <94a0e631b787d56fec1b17e03fe045b5e14907c1.camel@j-davis.com> Comments: In-reply-to Nico Williams message dated "Thu, 05 Oct 2023 14:14:54 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2816607.1696535377.1@sss.pgh.pa.us> Date: Thu, 05 Oct 2023 15:49:37 -0400 Message-ID: <2816608.1696535377@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nico Williams writes: > Text+encoding can be just like bytea with a one- or two-byte prefix > indicating what codeset+encoding it's in. That'd be how to encode > such text values on the wire, though on disk the column's type should > indicate the codeset+encoding, so no need to add a prefix to the value. The precedent of BOMs (byte order marks) suggests strongly that such a solution would be horrible to use. regards, tom lane