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 PG 18 manual ↗

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

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. PG 14 → 15added

Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source