Re: List of encodings

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>
Cc: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: List of encodings
Date: 2026-04-21 04:32:06
Message-ID: CAKFQuwZcTd9ixAZa1Uei5k8gwUrnCqZsb6JrGccxMGMCGNURMQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Monday, April 20, 2026, Igor Korot <ikorot01(at)gmail(dot)com> wrote:

> Hi, everybody,
>
> On Mon, Apr 20, 2026 at 8:29 PM David G. Johnston
> <david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
> >
> > On Mon, Apr 20, 2026 at 7:47 PM Igor Korot <ikorot01(at)gmail(dot)com> wrote:
> >>
> >> My understanding is that if I have 3 "BIG5" encodings, only one can be
> >> a default.
> >
> >
> > That would be a misunderstanding of what a conversion table is about.
>
> What I did:
>
> 1. Google "PostgreSQL create database"
> 2. Click the first link - to PostgreSQL documentation.
> 3. The command have many options. One of them is "Encoding".
> 4, Scrolled down for an explanation. The explanation had a link.
> 5. Clicked the link. Received a page with the list of encodings.
>
> At this point I asked the original question
> Does the list on that page stored somewhere? Or it is hardcoded inside
> the sources?
>
> That's when I started receiving a references to that table.
>
> Did I ask the wrong question?
>

And the answer you got was “no, it’s not (i.e., it’s hardcoded inside), but
you can get to it indirectly”. In this case if you involve the
pgconversion table you should ignore the conversion is default field as it
has nothing to do with the question - what encodings does the system
recognize. You also got an answer involving generate_series.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Igor Korot 2026-04-21 04:58:24 Re: List of encodings
Previous Message Igor Korot 2026-04-21 04:22:00 Re: List of encodings