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.96) (envelope-from ) id 1wEZa5-0049qz-2b for pgsql-general@arkaria.postgresql.org; Sun, 19 Apr 2026 21:21:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEZa5-00GOcM-0H for pgsql-general@arkaria.postgresql.org; Sun, 19 Apr 2026 21:21:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wEZa3-00GOcE-30 for pgsql-general@lists.postgresql.org; Sun, 19 Apr 2026 21:21:28 +0000 Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wEZa1-00000001p67-0isU for pgsql-general@lists.postgresql.org; Sun, 19 Apr 2026 21:21:27 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 26E131D00197; Sun, 19 Apr 2026 17:21:24 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Sun, 19 Apr 2026 17:21:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1776633683; x=1776720083; bh=H/y1QPG+DbYahVP1814Wa0YLrfkVpAJHDL0J+IQlWHQ=; b= NwlcvEQGPvVtfR6NNBQNO9y3vtPK4kidjeolPrdEIgjVKKVV3AaqVQxTdWNpaywn Al28NMHM9T51LS6Ga32sTD4mnpLmvqnAshrWY7Xc7rI0Z+uDqUuzaDr/9bEjG8d2 IviKMdAZfk3egKz/4g/6OZQP5MCnPTqnLVnvqzDLZTfiVtLEd8ZyUHasCWxjP0Wc 5RhcHnfPMI2fbLGRedmMv7jAjONVSdF3divZP9OxNtuqcFLOEMFmfpvGb6g9LVw5 gqiME6CIMMJZ1f6q7oZ89x0Tnenf8RmVRlmU+9It1fitgKybovS9xWOifOCHtXJs /u8Kpo3IjCMad5TLoEHVAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1776633683; x= 1776720083; bh=H/y1QPG+DbYahVP1814Wa0YLrfkVpAJHDL0J+IQlWHQ=; b=V G/cCW1NUe/zOO9uQW4BFXRG4hpnHRJXv2L3QvsFWcoV96ejMJEDWLKJWnHbQ4UUj vqsPIUZIHDbOK2DKhAkZkO76B4pIZcivlc/BlzrKDsjK/l4txNJriJyvPa5TYHA8 4GF84vMxIxPW8lkWtEPa02maOvNiRaWVHB6VctLLffmpSwodFiIXOoOupCbYDJBt vm24vQxsll7fUzmVO54QwMIjVU1Ipywmi21bzVas7lS0xOPEbnjALbwjz+8LXUNn Pfl/vcRve+XhrMbnpJBVDrICSXXOju7wekw1D6gIDOoGJYUlYfgi/3BkO3ZrLz9B JGlYMVh1pC7bo6SeggmIg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdehieejudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpefgudefkefhveefleevieeuveehvdduudekuddvvdelhfeu ueeijedtuedvvedvueenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghn rdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepfedpmhhoug gvpehsmhhtphhouhhtpdhrtghpthhtohepihhkohhrohhttddusehgmhgrihhlrdgtohhm pdhrtghpthhtohepuggrvhhiugdrghdrjhhohhhnshhtohhnsehgmhgrihhlrdgtohhmpd hrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghs qhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 19 Apr 2026 17:21:23 -0400 (EDT) Message-ID: <71cd4015-9002-4173-bd9a-075f7afb3c20@aklaver.com> Date: Sun, 19 Apr 2026 14:21:22 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: List of encodings To: Igor Korot , "David G. Johnston" Cc: "pgsql-generallists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/19/26 1:27 PM, Igor Korot wrote: > Hi, David, > > On Sat, Apr 18, 2026 at 2:19 AM David G. Johnston > wrote: >> >> On Friday, April 17, 2026, Igor Korot wrote: >>> >>> Hi, ALL, >>> Does the list shown in >>> https://www.postgresql.org/docs/current/multibyte.html#MULTIBYTE-CHARSET-SUPPORTED >>> stored somewhere in INFORMATION_SCHEMA? >> >> >> This wouldn’t be under the purview of information schema. You can find pg-specific pieces though: >> >> https://www.postgresql.org/docs/current/catalog-pg-conversion.html >> >> Note the function used to convert ids to names. > > Tried the following query: > > SELECT conname AS name, pg_encoding_to_char( conforencoding ) AS > encoding, condefault AS default FROM pg_conversion ORDER BY encoding; > > and got following results (for simplicity I will post only couple of rows): > > big5_to_utf8 | BIG5 | t > big5_to_euc_tw | BIG5 | t > big5_to_mic | BIG5 | t > euc_cn_to_mic | EUC_CN | t > euc_cn_to_utf8 | EUC_CN | t > euc_jis_2004_to_shift_jis_2004 | EUC_JIS_2004 | t > euc_jis_2004_to_utf8 | EUC_JIS_2004 | t > euc_jp_to_mic | EUC_JP | t > euc_jp_to_sjis | EUC_JP | t > euc_jp_to_utf8 | EUC_JP | t > euc_kr_to_utf8 | EUC_KR | t > euc_kr_to_mic | EUC_KR | t > euc_tw_to_big5 | EUC_TW | t > euc_tw_to_utf8 | EUC_TW | t > euc_tw_to_mic | EUC_TW | t > > What I noticed is that all encodings are default, as they all have 't' > in the last column. > > It's a little confusing... Not if you read the docs: https://www.postgresql.org/docs/current/catalog-pg-conversion.html "The catalog pg_conversion describes encoding conversion functions. See CREATE CONVERSION for more information." https://www.postgresql.org/docs/current/sql-createconversion.html "Conversions that are marked DEFAULT can be used for automatic encoding conversion between client and server. To support that usage, two conversions, from encoding A to B and from encoding B to A, must be defined." > > Thx for the help. > >> >>> >>> >>> Or is it hard coded inside the PostgreSQL codebase? >> >> >> Yes. Doesn’t preclude exposing it via SQL but we don’t do so directly. >> >> David J. > > -- Adrian Klaver adrian.klaver@aklaver.com