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 1qz0Zx-00Ci5q-EU for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Nov 2023 20:15:41 +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 1qz0Zw-003ABr-4V for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Nov 2023 20:15:40 +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 1qz0Zv-003ABi-OU for pgsql-hackers@lists.postgresql.org; Fri, 03 Nov 2023 20:15:39 +0000 Received: from c1.krylov.eu ([2a02:c206:2104:6623::1] helo=mail.krylov.eu) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qz0Zp-004YDt-3i for pgsql-hackers@postgresql.org; Fri, 03 Nov 2023 20:15:39 +0000 Received: from roundcube (roundcube [172.16.15.33]) by mail.krylov.eu (Postfix) with ESMTPSA id E1DA052A; Fri, 3 Nov 2023 21:15:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=krylov.eu; s=aug2022; t=1699042530; bh=Ai8hJhw9nbhCw7pV8eElRjBaO+jSWrpEw8lmG26dPO4=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=g8CpRquWmo8aCFZkFRVw1ORp/TIq1DU2eXV/sK3OGjqBPA2eJaX+Y4SAG+Ea1DrFp taqBSe7Zmahy3nPOUno5noMz4uSmh/t1Ov5+dM2hlLWkuG+pmM5KqW2Wvn+uK9rw7n aN7VaHSb5yZ4ke9monL6Tv7PsEbApiX+r4IKTelU= MIME-Version: 1.0 Date: Fri, 03 Nov 2023 21:15:30 +0100 From: Phil Krylov To: Chapman Flack Cc: Jeff Davis , Robert Haas , Nico Williams , pgsql-hackers@postgresql.org Subject: Re: Pre-proposal: unicode normalized text In-Reply-To: <02d05bc98ca5b2d8ab38fec5fe5b7625@anastigmatix.net> References: <43864caecd65d02081d623d05ccc1683@anastigmatix.net> <02d05bc98ca5b2d8ab38fec5fe5b7625@anastigmatix.net> Message-ID: X-Sender: phil@krylov.eu Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-10-04 23:32, Chapman Flack wrote: > Well, for what reason does anybody run PG now with the encoding set > to anything besides UTF-8? I don't really have my finger on that pulse. > Could it be that it bloats common strings in their local script, and > with enough of those to store, it could matter to use the local > encoding that stores them more economically? I do use CP1251 for storing some data which is coming in as XMLs in CP1251, and thus definitely fits. In UTF-8, that data would take exactly 2x the size on disks (before compression, and pglz/lz4 won't help much with that). -- Ph.