↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / System Information Functions And Operators

pg_encoding_to_char

Read the PG 18 manual

Converts the integer used as the internal identifier of an encoding in some system catalog tables into a human-readable string.

Reading PG 18current·documented in 6 of 27 versions, 15 to 20

Signatures & examples

pg_encoding_to_char ( encoding integer ) → name
Converts the integer used as the internal identifier of an encoding in some system catalog tables into a human-readable string. Returns an empty string if an invalid encoding number is provided.
Version history 1
  1. 14 → 15 added

Definition snapshot: b7bd9cda · English manual source