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 1wEaKv-004AqE-2s for pgsql-general@arkaria.postgresql.org; Sun, 19 Apr 2026 22:09:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEaKt-00Gcz0-2x for pgsql-general@arkaria.postgresql.org; Sun, 19 Apr 2026 22:09:51 +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.96) (envelope-from ) id 1wEaKt-00Gcys-1u for pgsql-general@lists.postgresql.org; Sun, 19 Apr 2026 22:09:51 +0000 Received: from mail-yw1-x112d.google.com ([2607:f8b0:4864:20::112d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wEaKr-00000002288-1Zn6 for pgsql-general@lists.postgresql.org; Sun, 19 Apr 2026 22:09:51 +0000 Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-797ab169454so32406867b3.3 for ; Sun, 19 Apr 2026 15:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776636587; cv=none; d=google.com; s=arc-20240605; b=dp+pRmFRTYuyu5gw94Zdwn68qtt+z6hu2KnqK/xyIwRzFJszQvqQTz9evwY5/RGvXd TT/5qxyckME2c97SieEcdJHJ3mDFwVXRs3dk3CBOD6qECm2UH2oU83C5sUAZD81MvSE9 agaZqxxf70M/5k1BwnlH/un8C5u4rM3wK0XfBfRfzyEEALb4xLHSBx0hGzMGlhrKQR4e rxnfPisfZq46wCMRB9HG+6gKv8hiyelNMMHOnx+qfz3G4R9yrUUpU2XpWyjQl+SWfPny 2uniUVSDOKjLBP4ewTmVU0Fl3HDRZopJl6gIG7FLYDdpe97Z0jnWVxJv5VLsg+U5dk/q uWmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5vnW4vWEmW/P9ykKme4U24XYsH89rEvX81bPj/f514o=; fh=6TieQOsiMO+6g102wOOK7MEcEYa1FdJVfBvx4/IoAFk=; b=gTycUZ1kJ5m+6+nQOeJ5e0H+hVqp9xoTHZhL5nWyxpeSlPiIrVyDRObqnO/r0fb/a1 e4LjhRWUAHFoqTowa/cn0YHgByMfrNsJR/vGHwYAZvL2t3ht7CjYxfooAmi6Tlttl9JJ 8Fb7WGGdE+CeGIt7r718dyUypKA7JpbmRQYwsEghQsP+Zq3cAV7RQNukpT0bw+x8U7vR jrbNMzJiix/b/BdHMRGdu7DYBFVUXhs/HOKNdlhkVrLzfFF1HReO/grfUZriulAXWEy3 n1y/SJNmjquHvXJWmneUYHqzRcpcv4/eu0UAjyJOJEmtkltL8g4yp6rk500Xg0OHCL8E SBig==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776636587; x=1777241387; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5vnW4vWEmW/P9ykKme4U24XYsH89rEvX81bPj/f514o=; b=gfmw/zdWzC8DAZuS3vLr00JeYeKrEA+5bIwYLmoPRUMjd3ShLP+oqfLrXzSqvLRvJH ScrPnkdZ4YfeXs/4iq8Hgy9q/UqkcCc8w8iWmh0/Mi2YMmqO2qZahk0fni/Jx/0SP4fH gUBNyfQun7t+JkFcI22Aco9VdnKQAninErAb0tzjG0L5ZDl48nkG1H3KNUHNSZKYtFMs jl3+shMTyrToaDHILbPVnyttVmWkqFXmqV70EY53I8YEXK1pANYq5j/8VJhVjabWYPU0 bIPYsbmXoWhndqkA0oX/XA74wmxSndVahdIXEzPcwt59p0Pt7SEhtgdXh44/D8St9HDj bAkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776636587; x=1777241387; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=5vnW4vWEmW/P9ykKme4U24XYsH89rEvX81bPj/f514o=; b=WAZIkG5MFVJmw75M5H39Kr6+GRt2URkSL6201aNwUJTy8h2YM/Q2nrCyhHLk14zjUO vt4awcjU3MJNUm8voZC0FI+vzJlL3v8FaIdO/dX7bzC3CdFwP57NS382aDd+bPX6jAxQ xnpSSvbDIUmliWGyW/2H2TQCPK8B/49f11SNMDzm9AOveXQrY6jHMyNxwiIdbYFH+aMR vncNEkW82tYVwu94bEcRMg5mq2ItIU9jcu5hjYx/2ePs4DzW1mhG3RVa+NX1XNNkJhTO CxxVF8YyIn044N4gEaGfBltzgXjZtNTIT9UEJo57iaatTq3lhSgwqpNxuvC6B7QGrS5K j8og== X-Gm-Message-State: AOJu0YzvdXfuAh/gzbRdZ1l+hoVhfxhOspGbUkxNDIbz8V3Q0nUG53Xq d9/AQqag+ecAYKXom8blkgKPX7wHriQtue5o3iE6nIWX/huzJRYj0ebqn8GsCEj0O80YvfCoG5w QLykkFft5fxFq6sVdimE2Wq0Ew0sZhdMTj+Mz X-Gm-Gg: AeBDievmyd5Zcy/dN7RkE9DI/ZIlgjXPaVdNm7uFxZT+evKSKQ7rl0tNH+YJAMkO0TM n+K1juUemmdcvZjnJG9+T11ehe/Gb0mbnjIsIP5g75oOMbBqZ85DFBrv4FqQdKQp50IBRizBl6m DgUfa2G1X/W25nEWxXs4PqnlfRey6u56O/dOvBPlfbX8L8is7hDNnf4U4fstpunRpGftjqVoMpR Gi27TUJYggrcrwwJjT8lU9e0tIbO23ttVZOpdyzr6v/T9hk43iYmR2MK1tgZsygM353h+4EU5MG 08slw5jMsDN7oI2C9yygwkExVmamuNXg6rcIohDI6+G9NDhc71nBBLj0WPMW+fHx X-Received: by 2002:a05:690c:1b:b0:7b0:4bc1:d700 with SMTP id 00721157ae682-7b9ecfc8183mr123872857b3.36.1776636587437; Sun, 19 Apr 2026 15:09:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Igor Korot Date: Sun, 19 Apr 2026 17:09:34 -0500 X-Gm-Features: AQROBzCLcW4pInRt86M-lFrmxvhDnyfJfOXTz_GLabMPABP0nQ3_c0KPxNTp4ns Message-ID: Subject: Re: List of encodings To: "David G. Johnston" , Tom Lane Cc: "pgsql-generallists.postgresql.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, ALL, My question comes from the fact that "Character Set", LC_COLLATE and LC_CTYPE can be used here: https://www.postgresql.org/docs/18/sql-createdatabase.html However its a little bit confusing. The character set should define the collate and the CType things. But according to the docs it looks like its vice versa. Also, there is no reference on where do I get the corresponding values for LC_COLLATE and LC_CTYPE. Thank you, On Sun, Apr 19, 2026 at 3:27=E2=80=AFPM Igor Korot wro= te: > > Hi, David, > > On Sat, Apr 18, 2026 at 2:19=E2=80=AFAM 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-CHARS= ET-SUPPORTED > >> stored somewhere in INFORMATION_SCHEMA? > > > > > > This wouldn=E2=80=99t 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... > > Thx for the help. > > > > >> > >> > >> Or is it hard coded inside the PostgreSQL codebase? > > > > > > Yes. Doesn=E2=80=99t preclude exposing it via SQL but we don=E2=80=99= t do so directly. > > > > David J.