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 1wEcMO-004D6I-2d for pgsql-general@arkaria.postgresql.org; Mon, 20 Apr 2026 00:19:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEcMO-00GtNc-0E for pgsql-general@arkaria.postgresql.org; Mon, 20 Apr 2026 00:19:32 +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 1wEcMN-00GtNT-2H for pgsql-general@lists.postgresql.org; Mon, 20 Apr 2026 00:19:31 +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 1wEcML-000000022z7-1igj for pgsql-general@lists.postgresql.org; Mon, 20 Apr 2026 00:19:31 +0000 Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-797ab169454so33212917b3.3 for ; Sun, 19 Apr 2026 17:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776644368; cv=none; d=google.com; s=arc-20240605; b=feiITTussWfy+muB+waKWvNIqKFYtVxNV3wC6goKi6ItuWd/tCXJF/zlkz8+Konbgq rxMk1BPANyxLsUd0aWXUXRVuKQYk+mOo7nGFrDOhY1Ip8Sw2Y4RQK8VXep9vfLNBukzK kphaPoEVZMj25vZiU9gAVQHwkXHdSGknfY9T62uZkn7xoLnTUOsahW4achatYwlajd3W cxEdyJVTKpaJCFoM9ZVMD4yVXpJ9FKH8Jvn072GqoK5kKwb20SHkzsGoQ6E8hROcs9nh Fi36GqUDpvuDGB9p6RlqSFc5Pnb/aWO1meQ2t3G9h9hqupNHFZseReicFzmFHJwZv3pZ iMxA== 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=JKpgKhCjJ9WSELplLOApivWrqj7QDs3l1sScJIxhPsU=; fh=gyNllCn7weR9N1HeRTaQabatNB0tx3lmsXx1J75yQVI=; b=VTebnMvNUS37F25DXavPWr5Y54FmAKEzOC0xXuFtDB9+onEpbYcYww99UubfkiWHxE pjUTXXOaLQO5pUD4dXr2kqN1AQqY0qhzgxjnFiOvhFoupcLSJeU9ARdUyYqMh9TPmpFU SZKC1FGtPt2A/OO2INosqxpJGGit4Tb/8PQFGIcGTIg5xceF1qy3ZNjZDXpJ51gPIxoE cIBgP85mHNlSP6/0nKEO389JU4oePJIl8MMKVr7RZ3PzmuW1MVtkeUUa7wGIyyhBqXWx 4rUKkxSJ2u91sLOHRKeSLHCEB/oNkcY1VfQkF06ZQZIhnlAShJ2mr5+nWP9NvICCqwQR Hsmg==; 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=1776644368; x=1777249168; 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=JKpgKhCjJ9WSELplLOApivWrqj7QDs3l1sScJIxhPsU=; b=DGLLlb1vzSnFWWX3cMDXrahVft2z6SovPPd/z8nVF80H9emQMUct+rKRqKpB38hrHr XGJb8CI/ZsRXR8y0N9IkFnY5RR0HFywV+ILViFApwRkC+vlkvR92s6y+U79aJbRvMlFX 5qH41AGJL0IgE+wvNQHFG+aRWjzWx5GvyUKXLZAYd5Jp8pw9u/uL3t8UEe5+rkYt6OZK B1WaP/t9/sERO0mBPdcJ7WURWSUcLT9i5/7ImLSB1v8oSOtFcNZ+0ZNjRyXevpdra3tG toQBo5n/YM2EBKBsjob6grz1Ps+f3IrGWIrCOLNkXQdfPjIpQtTIPUn/jpAEUrVoH6oX BRUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776644368; x=1777249168; 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=JKpgKhCjJ9WSELplLOApivWrqj7QDs3l1sScJIxhPsU=; b=JcLCscWyLMnGZ1gbpKUsFjU3AKwH4UZB7Co4dLo8hMFxwofLi9+QJ3y7i+XRUCRAim xMQuB27t7v8NZdc/NnlFeZt57MwTVZ5lCvSVrxYHmS25E+6cp7vokfCTJrKirxxoYL2g 6A0Bz/CqJHkeo0VLoQh1TDftwwnRAnCPzZpEPgnaO9AeZL2n914YWoDslJgwkY4vw6v7 AVZbpkvAMw/cBGnbi/fydR/u/vJW1qsnBCakBfoPuamnil1Fo/uXDRj6bCU1C7c+wT2W qnWJVHkCr3pI+CdEcxEmehHTmLYUCHrEnL2Izovmy+ary2UkjsC+0taUszNJPnI73De2 FH0A== X-Forwarded-Encrypted: i=1; AFNElJ//00Ludg/i8DZ/RkE1ZDI5Gavby//7Nv1G7w/Zbc2aRBsxZg3Y8CIypkqUHE7rb1dw4RNlFJfh4pH0hdZy@lists.postgresql.org X-Gm-Message-State: AOJu0YxaMNo63Yvd8fAJ8bjtqZvi8nvIkgRbDV2ST6Soo0aV6pcgkOkq 07qZf7u1JbhkRoPQyDcEaPwbvYTzmCr2JMiHXK7Le9DtoXh8YcmdNJiQ+VxFzg9d9ohjkIVt5tK 8pU5x/z4mbNmsXkJIFdlmHHZOhQfQKF8= X-Gm-Gg: AeBDietsMYif6q5Qyjzqjj/3aqHfG925jgTdowzzqiGShCx3OAMeIW+Yf8i3r6HD4HB tUdM6ZXH+2zN/ttH1H28byMxztXecfqvF2tbXkkbmQezGkVOObK46kcxeNYb46+MXYELfq8rVUj 9ir5sj6Kq0tJY0/i1OSrnHUKXm9nPvEgMVIXlx0CIlZFNNET8XIyKwsKIsAIcwyg+D+QOzs4Vvp qVgQ8pwatvzY42pLQUuvRpK9WSniDXO8QHW7s8lQILNuzE4Q66ulB4Ss3V2aYuda5EzXyFyxT5Q vKZWZdAoJqRWWXPAmYXP7w+onM0gEjvmmkH4KaCPL6qkwMzBNAiyvqbLcQwwHVxm X-Received: by 2002:a05:690c:d90:b0:7b7:6fab:fc03 with SMTP id 00721157ae682-7b9ed0072admr125250227b3.44.1776644367754; Sun, 19 Apr 2026 17:19:27 -0700 (PDT) MIME-Version: 1.0 References: <71cd4015-9002-4173-bd9a-075f7afb3c20@aklaver.com> In-Reply-To: <71cd4015-9002-4173-bd9a-075f7afb3c20@aklaver.com> From: Igor Korot Date: Sun, 19 Apr 2026 19:19:15 -0500 X-Gm-Features: AQROBzBNVNsV0UjxpZjhRZAoeKw3mBoWl8woo0dKmV4deHK4usQe80ZOIUiRFHA Message-ID: Subject: Re: List of encodings To: Adrian Klaver Cc: "David G. Johnston" , "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, Adrian, On Sun, Apr 19, 2026 at 4:21=E2=80=AFPM Adrian Klaver wrote: > > On 4/19/26 1:27 PM, Igor Korot wrote: > > 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-CHAR= SET-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 ro= ws): > > > > 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." From the https://www.postgresql.org/docs/current/catalog-pg-conversion.html= : [quote] condefault bool True if this is the default conversion [/quote] So, what info do I trust? Thank you. > > > > > > 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= =99t do so directly. > >> > >> David J. > > > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com