Thread: pg_conversion

pg_conversion

From
"Christopher Kings-Lynne"
Date:
Hi,

What do the columns conforencoding and contoencoding refer to in
pg_conversion?

How would I convert those numbers to a string encoding name, just using SQL?

Chris



Re: pg_conversion

From
Tatsuo Ishii
Date:
> What do the columns conforencoding and contoencoding refer to in
> pg_conversion?
> 
> How would I convert those numbers to a string encoding name, just using SQL?
> 
> Chris

Use pg_encoding_to_char().
--
Tatsuo Ishii