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 1wF19B-004fRE-39 for pgsql-general@arkaria.postgresql.org; Tue, 21 Apr 2026 02:47:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wF19B-005SVZ-0S for pgsql-general@arkaria.postgresql.org; Tue, 21 Apr 2026 02:47:33 +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 1wF19A-005SVP-2T for pgsql-general@lists.postgresql.org; Tue, 21 Apr 2026 02:47:32 +0000 Received: from mail-yx1-xb129.google.com ([2607:f8b0:4864:20::b129]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wF198-0000000216t-1qCL for pgsql-general@lists.postgresql.org; Tue, 21 Apr 2026 02:47:31 +0000 Received: by mail-yx1-xb129.google.com with SMTP id 956f58d0204a3-65318dafbcbso3551611d50.2 for ; Mon, 20 Apr 2026 19:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776739650; cv=none; d=google.com; s=arc-20240605; b=LIZc54ohH1vKcRct7jOA1FnAWiLGz4U5wGwUzLtXF1OuJtUuEhAjfyuqZkZkIUV0WM uqQhkh8iuUZAdKQIDqat24z5xv3OJHltw7/9mgDVl2fqphSfbGztRJlc8NLxR4jj18XQ IaoWkMxmUh7xS7Gn8xaQsmGKHnwPLgVCFHXtvm6bC/m+q1D2PvBFJmB7Jo7NoHgtm3MH bjvuFFFfVJ2iBCOz/YgDACENNaKxGI58N/ex6p0tO/aelnQzuJh/Zh48ZQi4vlwpFzDP v8q6X7e55htuDD1Nxn4Z7XD17ZBjfqoArRzy1+bqsBrMvaKu4RMUGGi+5vKRSX5X6k1Q SqYg== 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=R1T4VECWJtSctDAxLeEcgQw3BEP8t2OUWdkfHSnvSsU=; fh=M5d6ZpcaQVHTXkkOH6MmskvUc9TU9yzFINFTBAvu35o=; b=Qkv++78eHTwsV2GAKxaIKzU961aaeR1/ATe77mjYTpVAzpfpMbrEgEII3qldbQ0JW+ 4Id4NsDxU5dYRxVl2hBZxxyNP46teEifFFm47oj10Pq1+MX67ulMxmcKjFIq3GtQc4yB oN49LEz0oHsXwy2Ncyz4ftkk5samLkLRpZds5GDaqekO4prxjuzaqRD6zaIT88X1A+FU DgKSBYcR+tBVCM6oQkXngZWZsDb7vXv6+fpfhfaYnGlar/lfwDIssyuTTdFoIHDw61wj +ZUs2LiT8F4c09VtVpr7FoM2Y9TnXN1HZYD/cuMUrsa4L3fHjhPEH9XSNWK+FYn5eP0A r8Lw==; 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=1776739650; x=1777344450; 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=R1T4VECWJtSctDAxLeEcgQw3BEP8t2OUWdkfHSnvSsU=; b=b8uq/+QCLQ0qU9HRnzl7Bt9HTeGX8es2ILCXYVIP4lC+wCP96WACOiI/Iq+YvQrLf6 uUHfyWCGztKPK9I9VICE75nDzJe6xLV96wzkJkGJ1bmpz7KrWDFDsQoS2Dar6DulELI1 n81OHOL9iOBrh+0zAnQkuyzp8Trtj0wNXmi7+KSjlZHVLtvmHUfP8qsCEBQgBsHZqWtR dgKbP4X8cC1g67xoFycCzsHC8a5AAE02Q14A88VWchYpue/3C2GsquNQwll5lWXVGSVV +IYmAKr2zCHa1HcsCJnyeqxX8FigmsXsEM8P8uvK4FToOqO18SwTCWnJCdvCsaPj+bjD MGYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776739650; x=1777344450; 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=R1T4VECWJtSctDAxLeEcgQw3BEP8t2OUWdkfHSnvSsU=; b=lqc3UHDObghTQzCnV9Pxv1IZkXnEWx6jPxAoT1Ss7/8NWTlIBW5hfQ83mob3LQQBYG LfjhMWJbgt44j2d3dHuPcHnlW7dqWFwpEKqMQ7rgsoMzPML4LPULBfDR8FqQsw/CdBJI PmJKlMwCkdxus5ekjvc2xSx8AGeiInCnVkRc7brR3gro/lo35gqq6SWWl9Xw8rL5hCKH vxcYC2zgMOSxb7/6vB0CoBYOrQP+DxJID4yFAQOxniAK6MowfOdN35Toqrk1U/KOevSG Cxl6DKApESb+mE+VVCSoInT27ly48IEPrvan6uhjyqFHEmdaSTNx3HzWwoPdZXzGHJ5l pFew== X-Gm-Message-State: AOJu0YzqKZxJxD7XyKfHLx5Gzm6msHQjm74LPt+/C1qFs6Td6MqwrEUM lQG65T5ieZDOEPKWvS+rqhgHxcwtsD9g5XbRU4uY1EuQ2yAw4c6E2aFNPigzfDVIl9sFsI4aLu9 tjLKLjpJPICRzOO1dFEv+GzNxga8YOdeIbg== X-Gm-Gg: AeBDiesH1nZlsfwIbhn7Prgyeh1DUfypGtQBppTgYYOhwn7dq7MbIaNLgRc2FTy36M3 TbEUmUuh3DQJ28PSvC4avd4/HX0AM/9/XbVy6cHfjuIWFlm2/4h4ZaH5i8eV72Jh18TbFkYr7t/ mgR3DNh1jolpvPbUcjDUzlKskHLtxY8auiohd4SgXKL6auIoEMVcj/ZGEaYH0Hlb+0LfvzZ/GVI v4tAZeT/y8qKzzFHR7kl+e/IXf25DHhk05em5N9GCsIVBDtoOnqlbAAeSrOq5L75ojreVXk8v/x 8syITGPqp9xq1rEYmF0c4nsvkZdZQBRR1xeIXXQY8NLQ1EwCX8FWylzzC/hNUxplvxgxLT5oL05 17G2pxumIOu7uQk5R+g== X-Received: by 2002:a05:690c:c1d5:b0:798:4f55:2c5e with SMTP id 00721157ae682-7b9ecf7c84bmr138290187b3.30.1776739649744; Mon, 20 Apr 2026 19:47:29 -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: Igor Korot Date: Mon, 20 Apr 2026 19:47:12 -0700 X-Gm-Features: AQROBzCaPO7eAw0sFbYL112TdeQh45whucrYLZsGXWDw1XWHYTezDWjdV26XZto Message-ID: Subject: Re: List of encodings To: Ron Johnson 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 My understanding is that if I have 3 "BIG5" encodings, only one can be a default. And if you want you can choose the other 2, but selecting "BIG5" will make only one to be selected by default. That is why it is called "default" ;-) Thank you. On Mon, Apr 20, 2026 at 7:42=E2=80=AFPM Igor Korot wro= te: > > Hi, ALL, > > > On Sun, Apr 19, 2026 at 8:32=E2=80=AFPM Ron Johnson wrote: > > > > > > > > On Sun, Apr 19, 2026 at 9:13=E2=80=AFPM Igor Korot = wrote: > >> > >> [snip] > >> > > >> > In your setup all the installed encoding conversion functions are al= so > >> > 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 misunderstand= ing the purpose of the pg_conversion table.) > > No it does not. > > But it has an option that can be chosen and supplied to the command... > > So when I write "CREATE DATABASE mydb ECODING =3D BIG5", what will happen= ? > > Moreover, I'm curious - if I chose "BIG5", there are only number of > available collate/ctype pairs. > How do I choose which one to present to the user. > Because there is not one default "BIG5" - there are 3 default "BIG5"s. > > Thank you. > > > > > Wouldn't it only convert text when a client is inserting text of encodi= ng 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. > > > > -- > > Death to , and butter sauce. > > Don't boil me, I'm still alive. > > lobster!