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 1wEdCs-004EAN-21 for pgsql-general@arkaria.postgresql.org; Mon, 20 Apr 2026 01:13:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEdCr-00HEls-2o for pgsql-general@arkaria.postgresql.org; Mon, 20 Apr 2026 01:13:45 +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 1wEdCr-00HElk-1n for pgsql-general@lists.postgresql.org; Mon, 20 Apr 2026 01:13:45 +0000 Received: from mail-yw1-x1135.google.com ([2607:f8b0:4864:20::1135]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wEdCp-000000023Oo-1RPY for pgsql-general@lists.postgresql.org; Mon, 20 Apr 2026 01:13:45 +0000 Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-7982c3b7da9so23885057b3.1 for ; Sun, 19 Apr 2026 18:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776647622; cv=none; d=google.com; s=arc-20240605; b=Mix8S5pz5YQnQHtUiz/qnh5uymFCHph0C+iwcejXKaHo8HoqqHY3ckYm8fQEEIHvJf LEP8GrTYolvZ3MFul8SKYSiDSnY/sdlZZJ6W/LaqHDRvNJQ66lsiwUbIR/Pvb2PGnLWy cU/n/EW1Lv7UxDtw8Zymi0zJWj1rxdcn8hbEDfkvDKfn1hQVwVCX/zVS4JP9v9A76zK4 mU1O7QWCqmtQ7Hku5xHcj4Rq1B125FFIXNQDTh1ITrlXmOwrj9jcVqpsRXjjmuIV96BZ hPI4ckhiOXZGvoobmfUH7FTqsbVZwiQgLZoDgB8Yp/QzEtianfCCGZrarr496oycY65E uUqw== 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=JBe9nmugcHJcCNF6oUL8yPlr9hLFtluBmWpjwXrivyA=; fh=XhJcLBW7DGl3NBTaTx5oT4plseb6ibq/0jtUqyc3ETE=; b=KJrpi8GNCJ4Aic/EI8YG2BLo63Gwr1ux/a8T2a5R1qxWWFPMom8pQCgS5kwo1m1Rfk 4fUe6CNEkQBRJYRTrNG6GquvsB8vRTeR+le2oGfuWuZxXXDV7RbMPDxYvgDP6NPBWVNq VykE9m1wJrZdgf0/F/Y9+gHDjfBLLl1rK9xpfgPFMOmh3fFudmaJ4Xocs14UvJNE2gDO URWsVFov5naFj+XQSwER86j8MtmHqSIC8KEqOmcLLBZFALwrE4lfs5Y6P3N8elrmW3c7 awT1066fi69DGYzWtuNcQ9S90DvXSFUwFXh6V/YBTrLqnBVSOTQkSbmeC8fI2zS+czoH 8eQQ==; 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=1776647622; x=1777252422; 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=JBe9nmugcHJcCNF6oUL8yPlr9hLFtluBmWpjwXrivyA=; b=UdZRtEAFLvuqxtUdaWdQlghKJ19wXWN2xESgd6h+xyyWgPf1Q5+7ffXYherO0lFZwN RgKc4NNCM1asHvGUoUeP5+6+Lzdite2p4ZX2Pnv1PfcDuTgI/wVg1Tm5Us/4hCSEgxFq oaGH5Qsv8mUDyc4iDB4aWUttHc9u1uD7rNrdi3tslKYCP51G7SRADAe/jlOnrEZQYbGh eHzvoYtFDgqZKKwisDn7fuVLZsgI+dqwqWMxMa2sBbDogLfQAP2r93vhGD8F+O2Vd/bi FUmjx95AtVMD7NiZxGCASPOn51PKJPrV8mw4gy5smXEylsv6B4RjPWWBLkKAFrme/YYr ID+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776647622; x=1777252422; 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=JBe9nmugcHJcCNF6oUL8yPlr9hLFtluBmWpjwXrivyA=; b=aw5yWt6ONfHMy8I4MarJZLDbniQ8ve4HZyTs8RRahVzGwjvsDRnjR+qma4a0I1Ue8e XHsK0oC/zTaupEvOMxA7yGMFK8BqCneoA26wswD8Ng35Ho1/UaA0PHTHjYt8EC2HlmPH Emq6zlfxQWoX1nmcOEq/IFfWgXmju+T2xafj+xb51S927oN8KqA72bHLr0eMlYJQrwQZ gq2wHb4Z3M9f/YLUvCniJaexCZBaQPkfElbEmLbqYjsmsBpSWRp/tDwt0XZFJwRq2vAV ANbP5R9G3logDJoHubjhlixlE2e9l5q2XNcevEIVgXkNjOqDTvvpvM+xxf/48vuUaJWj 76mQ== X-Forwarded-Encrypted: i=1; AFNElJ95DxSbcDsj/sLutq3+2VHWm5KNUN3UmU/wtDyTGagkrp8/05rQcpFyFzQlXfLTmnD8C2+x4Z9w/y1E2LOC@lists.postgresql.org X-Gm-Message-State: AOJu0YzwYtSHdE+YeWcn5JTn40/Nq/f41N0Dyn1Z17n1cLqLEUxElc+m FtwkOmFsDgBba4qPzA9FKekz6kzk7CSHKfMp/5v43ZAKhkwO/2N0UO45/FRSeEpoIQObBXfzp02 YbWO4Mu0irZgM3DDU3hWfZLMlbW28duk= X-Gm-Gg: AeBDies+Q8KI/JdbbI9ZGk4umVmKCp3fPX7JSX1y42p2NTfqyVeiiCKpgC5QUmPOVjJ 9UXB20/7nvVRGkr7scJOCxCfynOMtsYwJt+CLJ6hDewYDvnqbXIVf313AysuOSZ1BG6o7ZqKMNJ JtBKG5RWTBoVzVe8842V9Cbq7dZ0jhhUCTJysNSwN8cYJCA6P5pGev7VqMhd3gslseEqWLrHuTZ yvrGkj6Zbz87VXpUBNuNvxSykiFPC2rniNsO85xhlOlf3JOf1gFNUcyUfsxwRu0LajaTdEousnX mUi97dKfkptaq7bEb4RoypM7U+a71msCtg6tNXLPubemV1agOvcG+M3QQfCpYUM1 X-Received: by 2002:a05:690c:110:b0:7b7:6a5d:ac80 with SMTP id 00721157ae682-7b9ecfb1f72mr119418827b3.31.1776647621796; Sun, 19 Apr 2026 18:13:41 -0700 (PDT) MIME-Version: 1.0 References: <71cd4015-9002-4173-bd9a-075f7afb3c20@aklaver.com> <5f263a8a-9c30-4118-b410-6e25eafde156@aklaver.com> In-Reply-To: <5f263a8a-9c30-4118-b410-6e25eafde156@aklaver.com> From: Igor Korot Date: Sun, 19 Apr 2026 20:13:29 -0500 X-Gm-Features: AQROBzC9WvIBgDRIY3FuL948FKMOs_xPJYfvyXpASOYPf1UKhsR57FdrhxqjtpI 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 Adrian, On Sun, Apr 19, 2026 at 7:53=E2=80=AFPM Adrian Klaver wrote: > > On 4/19/26 5:19 PM, Igor Korot wrote: > > Hi, Adrian, > > > > On Sun, Apr 19, 2026 at 4:21=E2=80=AFPM Adrian Klaver wrote: > > >>> 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. Se= e > >> CREATE CONVERSION for more information." > >> > >> https://www.postgresql.org/docs/current/sql-createconversion.html > >> > >> "Conversions that are marked DEFAULT can be used for automatic encodin= g > >> 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? > > Both. > > 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) Thank you. > > > > > Thank you. > > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com