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 1wEdUW-004EW9-1M for pgsql-general@arkaria.postgresql.org; Mon, 20 Apr 2026 01:32:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEdUV-00063s-2J for pgsql-general@arkaria.postgresql.org; Mon, 20 Apr 2026 01:31:59 +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 1wEdUV-00063e-19 for pgsql-general@lists.postgresql.org; Mon, 20 Apr 2026 01:31:59 +0000 Received: from mail-oa1-x2f.google.com ([2001:4860:4864:20::2f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wEdUT-000000023YE-1ISN for pgsql-general@lists.postgresql.org; Mon, 20 Apr 2026 01:31:59 +0000 Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-404254ffe8aso1859046fac.0 for ; Sun, 19 Apr 2026 18:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776648714; cv=none; d=google.com; s=arc-20240605; b=XMMVczAKsqaPWTmor//PjfmaNf95OoSfBrWjrMRRmabKv6S9eOa7fV3s+qbHnU0pbo MLGAlDtm18QMeD1fr4KCeF8BJtmTqvwy0Ubboaj6pZIGf9ugEsHRLrU8+Cgp2fHGMjWs edvqNAROqm36BscBLfUEK8r5+tr/4wJcgOcbpAUptLuDDzhDkpzuh3OeJ4485iVyxcp6 mEzM1/NEYUxOlpw3cD97y+77EDwWcFA23mcMSbVNcrSBTMpBH1XtEYC9SPwZSv99FoZS GVNZrWQoUu4yujTWZMwSlz7lELGDeFfoDOzpdsJHohU3N/e3heHOA/ag9IZs2MjN39HO 3CLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gTm0gOphvGe7/G9GOB3L/r+mDuatcNQaJ9E8tsXfh5U=; fh=2DoGC78b0mi8uZ4UY+9ocPF86GSVzeaJWqou/x907js=; b=LpkXonVFc/9LnHQLlT+1vsPYmwm8ty29axDL1FQeE+QHDSQizfA1/R6el3Q+x7W4vF jpJLF0RC7iCTrOhnL70e7nHaviWzOqfvTPdti5XHBwv4Za2LBN48nHyhSdhEYmtyhlkY 1u7jCZavc5kIq1PSlA75QzFcO3T4qzpLLOstAhjj9KTbvM369KSj7ZHLLh5dSSxrTe1/ zz8Grm0bp+IctPWXz7CJ4T0PV9c6Ub//K6BYdQsk/NflLtLHvzrikpyi+n1cY/VyJn2U 1zQOq6Srxj7dgG2Tu4c/82+2Wj+rfdrt+yH8S219mrtV7NSn+6Vgy/U49pKVfGsq/09P DlVA==; 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=1776648714; x=1777253514; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=gTm0gOphvGe7/G9GOB3L/r+mDuatcNQaJ9E8tsXfh5U=; b=q1MOhm9KgIfmgecloGPz9DUPTot9Uxcnrl8O49dhab+x6OOdbk7d9r8zR4oRHF89dv IBMkyj6mvGcwS/iW/n09VUGnBCzpKRhb+pSwjinGJP9V9C7Q22PFLnOPj+iLh5Ey/nWt rWY6y73qQnXUQHj/V2Evi0JGBPiXpktcNO12xZT8oZdm03tAVTpIA7TB1osE4gW6pHmp 7ms5BtGIj67HRN2v0+QCICspe2PvZekd72oYkXn3qHLLlsmup4a4pb5OG3Vu5jcWCihX QhRretAdH5Fz2CUuehb4BULS4SzZXAom2nevp4aTNYgIjmDMDYe1lz+qjAkVxeyOqkYd T5lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776648714; x=1777253514; h=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=gTm0gOphvGe7/G9GOB3L/r+mDuatcNQaJ9E8tsXfh5U=; b=LIM8O+3JuIah5ADFRKX9tnBjZMU9cfgX0dxUXXLliQEr0yOWFR9ZaBNv21Pcym5D9G eEYooJ4nqx0gxmvJG0RdrS8AkfT1km56e4Zoj5pxRdDxbpRw6zUCsZoZeK2TyQ0inG0h DQWYX2lB0MRNPuaHv0ycHogwWpSrsGN/mDzmXlSCf52boO9WkG7SES2eEJ0qXHUo+srw KuBWASa398qoBiB2hZVMxD0BmEI8EqzQnFuPGk4CwpdQFURlD50iw7ZVnROpxmLOXheX Oz3JnDtED2ytj9ZUI/i67IjXOsefuQB1gVcuKSDeRavwcXPBIGmo7qsagh47CLgiVD7O YDEQ== X-Gm-Message-State: AOJu0YyHu15mCdmvOpglOlZk5g8Gjr3Rmc1GwxSQy72D78qlUiB99WJY 7DBwpVjhNmVd2XFt9TRreZLVXJEgrNuTaXs7wpRHC7xdJxgfpQVmATlsrwk1To/VyQ2ErtPCxHu kBg3v9EsVoOvV4F6o6KnjMo1biD0DzIbo2A== X-Gm-Gg: AeBDieso7UsqX0DugwX4JMJmJuqnIggIAaFmWUzKiml+THmswkDOEYJf4UvmRpTTwWy FNzSTVPBNg9VWCEcPItl8GLfnNAlAFY2U3OdYu/7jS5nVRWwr7Svb53srYa2Ah79lxcjQmZte4r a1G3ugb83Nnj6VRoLGyN9fHEEGJIGKoeW3ivM8W/visijSIku8KBMrjILPW+/ZvuBHEYAoatvGE V4FaIn8XFQ8sHPxDx/Lg4O+utns18m6ZsQaBz8VnHXsPzDVae/C/hfeAp/v4d4M3wQWnSHIL1qd XOr3K2ow+emV6TBXXI8= X-Received: by 2002:a05:6871:580f:b0:423:1cc1:f878 with SMTP id 586e51a60fabf-42aa3050c68mr6207856fac.29.1776648714028; Sun, 19 Apr 2026 18:31:54 -0700 (PDT) MIME-Version: 1.0 References: <71cd4015-9002-4173-bd9a-075f7afb3c20@aklaver.com> <5f263a8a-9c30-4118-b410-6e25eafde156@aklaver.com> In-Reply-To: From: Ron Johnson Date: Sun, 19 Apr 2026 21:31:43 -0400 X-Gm-Features: AQROBzCaJr7fAnCf2D9aRbFu39rjAVQeQ6bnoHtRQDG1W1RgEGwsx8wsPHbm6tg Message-ID: Subject: Re: List of encodings To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000007d8d4c064fda43b9" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000007d8d4c064fda43b9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Apr 19, 2026 at 9:13=E2=80=AFPM Igor Korot wro= te: > [snip] > > > > In your setup all the installed encoding conversion functions are also > > the default for those conversions. It is possible to create/install a > > conversion function that is not the default. > > So, let's say I chose "BIG5"". > > As stated the table contains: > > big5_to_utf8 | BIG5 | t > big5_to_euc_tw | BIG5 | t > big5_to_mic | BIG5 | t > > Since all 3 are default character sets, which one would be chosen? > (in the context of CREATE DATABASE) > Does CREATE DATABASE *convert text*? (I think you might be misunderstanding the purpose of the pg_conversion table.) Wouldn't it only *convert* text when a client is inserting text of encoding X into a table with encoding Y? ISTM that pg_conversion says whether PG knows how to convert from X to Y, not the encoding scheme you defined when creating the db. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --0000000000007d8d4c064fda43b9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Apr 19,= 2026 at 9:13=E2=80=AFPM Igor Korot <ikorot01@gmail.com> wrote:
[snip]
>
> In your setup all the installed encoding conversion functions are also=
> the default for those conversions. It is possible to create/install a<= br> > conversion function that is not the default.

So, let's say I chose "BIG5"".

As stated the table contains:

=C2=A0big5_to_utf8=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0| BIG5=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| t
=C2=A0big5_to_euc_tw=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0| BIG5=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| t
=C2=A0big5_to_mic=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 | BIG5=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| t

Since all 3 are default character sets, which one would be chosen?
(in the context of CREATE DATABASE)
<= br>
Does CREATE DATABASE convert text?=C2=A0 (I think you = might be misunderstanding the purpose of the pg_conversion table.)

Wouldn't it only convert=C2=A0text when a clien= t is inserting text of encoding X into a table with encoding Y?
<= br>
ISTM that pg_conversion says whether PG knows how to convert = from X to Y, not the encoding scheme you defined when creating the db.

--
Death to <Redacted= >, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!
--0000000000007d8d4c064fda43b9--