public inbox for [email protected]  
help / color / mirror / Atom feed
From: Adrian Klaver <[email protected]>
To: Igor Korot <[email protected]>
Cc: David G. Johnston <[email protected]>
Cc: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: List of encodings
Date: Sun, 19 Apr 2026 17:53:21 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+FnnTzx90AzTu07zVGMCYmvBYs_VsL9k2E7eBkzg_rTRwZbeA@mail.gmail.com>
References: <CA+FnnTxFMiA+KMfypfGyY43G2kSx6-t5A351snUMmWC-2Lxvaw@mail.gmail.com>
	<CAKFQuwZOH6BPtaWJKr9jRGxdJt05YtLAZn1s_fYt=uzAASm9CQ@mail.gmail.com>
	<CA+FnnTymNs9_3pBci01_Uu5OTNJFngOhu8_khpmUs88V8kX86Q@mail.gmail.com>
	<[email protected]>
	<CA+FnnTzx90AzTu07zVGMCYmvBYs_VsL9k2E7eBkzg_rTRwZbeA@mail.gmail.com>

On 4/19/26 5:19 PM, Igor Korot wrote:
> Hi, Adrian,
> 
> On Sun, Apr 19, 2026 at 4:21 PM Adrian Klaver <[email protected]> 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. See
>> CREATE CONVERSION for more information."
>>
>> https://www.postgresql.org/docs/current/sql-createconversion.html
>>
>> "Conversions that are marked DEFAULT can be used for automatic encoding
>> 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.

> 
> Thank you.
> 



-- 
Adrian Klaver
[email protected]






reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: List of encodings
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox