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 1wF14U-004fND-0k for pgsql-general@arkaria.postgresql.org; Tue, 21 Apr 2026 02:42:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wF14T-005Pfk-0c for pgsql-general@arkaria.postgresql.org; Tue, 21 Apr 2026 02:42:41 +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 1wF14S-005Pfb-2m for pgsql-general@lists.postgresql.org; Tue, 21 Apr 2026 02:42:40 +0000 Received: from mail-yw1-x112a.google.com ([2607:f8b0:4864:20::112a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wF14Q-00000002EDI-3cjd for pgsql-general@lists.postgresql.org; Tue, 21 Apr 2026 02:42:40 +0000 Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-79ab3e26cceso32305917b3.3 for ; Mon, 20 Apr 2026 19:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776739357; cv=none; d=google.com; s=arc-20240605; b=i/dE+DqVQodpJAs26LXnmALkU/ffJYtY0GLZk7fAv85QA0BhU1c5Z/G4JWDaelx23N CgVYoSOtyofmphtHct8Zwugd8sAlChH1sT670K+PgfNiNEKCz2oPdND+CnP8SzBx6Xcp I3HRa/scVFanyId2v1d5Cxs5CImk98G39mv1X5G2LMdl2/XztDWZmPpC7m04cpKP2OCt vqNNZaP4HbHQfuRCkcABNUoy/p7lEwIjdCecR29D7snyjCDnMMBLz5yeYG/vRro3JALS xW1eDR6Cxt3y8geUxwRyAsELD2loqudqAShM9creIfUPTitvJpNBFUG65x05UC2iBBu7 q1Jw== 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=Jc29+GCeOxeGqrjw6ZFihEb1+cqsCWi+ob2H+C8SdrQ=; fh=M5d6ZpcaQVHTXkkOH6MmskvUc9TU9yzFINFTBAvu35o=; b=jx7zZhCRAXUzynAjtU+JxDGVFgA8f7wKAieM/rHQuilx1uRlyW8I873pukFlM3Dc7p 1BYscfVmlE3ccHOBYN4EVZTbRXkYyinQxeRqNHK9zSmS1uRAysoMFkR6oK621sWo3fdd guyLJxZyr/1IaOp4XeAzOksN7fny/dU5+cuZcpIfk2VdNk88FMpeczAExUDa1AEDjdbw 499YgLT5lTNCJQDXYImqGH/LecPxTSnXL+4lCzp7+JqVK9xZAFSucClOu81aiilKzlXD hqKKgpCF85fYhZ5occ+um57KME/okgX4sITM01mNFElflmAN/vvMm6n9rHyDHxI1/AA9 E8rA==; 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=1776739357; x=1777344157; 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=Jc29+GCeOxeGqrjw6ZFihEb1+cqsCWi+ob2H+C8SdrQ=; b=DZPmOu4LPkwozQGu5M7KDDOZoujaMdvH6W1M/riRg+glTzcEwFln1nVGl86xjkbBb8 AAOwjHuszCvUN/tP3YZI5fnoRSmuwdReNDsXNGvvK2tI+H8rch1t7wbeT/j1Ju8NfKA2 S1D1ukBQ+knkX9LhkA50mvlC14SY/gq555vdSwvwHSS/keqt7ADfgwL2QdFmiwXI2eAZ Olmmx0i01dLlfCYXrRGtoqvKk6zqsP9kkwPg2Se6LS/9MwiK/NOX9XuIJp2oBq9LOvUv 3JhnndeRIWK4RaxwEgsqpIZ0qyWV10Qu5OAvp9YABtqYrvpo35xkzHG8NIZ5vbyaVpkW 9tyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776739357; x=1777344157; 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=Jc29+GCeOxeGqrjw6ZFihEb1+cqsCWi+ob2H+C8SdrQ=; b=GRCVuMM0ZT0PMLptvbIwcXI7kN2NZnucQQB6pn/hGZ01zKvoiUpfJOmZFKolenpbGG xkb8KGjp06AHgue3PUPL9LWgdGgGFneoxTbw1HtIGqH/jrAfzpM8mVwHj6rOLHTO7pis i5wRaXkK3NRQdpT9ZHsLlORbwAR4KRrHn/bX1AMaWHAflHS3i3Iot1yII7nXjqdivVV8 JKvA8QZyE0Xh/4CiIohIwcUni6GBSd0nOlAo3HPqZSryB1Qe+TLMVMZLxz0IVjCBg+wX zzNLib1sD57U+kwxZhEgh6JhUy5FgskmBDaBkSngPsX9ihoRRqV77hGkDWx0bnMxLY2O 9TOw== X-Gm-Message-State: AOJu0YzxGG+mmDzjtITO7/+d7zNcALhkFBP8dE1hF241qD765zQYhn4G VawGL/Ls6A3hJRo+LqR+t90XfOIaYUPWMWt3tEWmtIrXntiIKWDx31+cQb3tbfK4gqx8x+nW8rK fOaEKQ/w4TAuEmp80r/F1d8w0I2x66LE= X-Gm-Gg: AeBDiesLwaFwTtw/4URY4lfi2LfLPxp+idG0sx0GCl9Ij8I2I7BrI10gl428unCqvtp 6PBZEolXPZEu1yuUlZM2CRDLUPKAG2MtN744/s8fnmfD0Ev0WjjQyjIeuZR3KbpNK+ouf4+wSIF wBSyR3TvGQiB368wk28OeI2QNMxoXXT+N4QjF8EOHhsPrTQ5gH4KJld1pXHXKpEcjSdsTpdWocD 5zoapFy1bV99rZ9G9JiK0tdcqTRpZ+1I0Jnx8NmDxaOYyWWGnH74lt7Q6TaSCjp8YhtTyNkdeBW 6OEVWgEn0svpobau1Aaf0ybtt/x4Y9b80KEyrxwDMLqSUUOd1c3vlyhl6iLtgVXkzoO1jGPVdw3 G1Qi9cq0= X-Received: by 2002:a05:690c:6e87:b0:7a2:80a9:93d1 with SMTP id 00721157ae682-7b9ecf98abbmr166634577b3.25.1776739357111; Mon, 20 Apr 2026 19:42:37 -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:42:18 -0700 X-Gm-Features: AQROBzCRkuoX1-JoE336meon0hi8UQ-XboNIoya8HPmPR74hbg6UZUtKtS74J2M 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 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 w= rote: >> >> [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 misunderstandin= g 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 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. > > -- > Death to , and butter sauce. > Don't boil me, I'm still alive. > lobster!