↑↓ 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_char_to_encoding

Read the PG 18 manual

Converts the supplied encoding name into an integer representing the internal identifier used in some system catalog tables.

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

Signatures & examples

pg_char_to_encoding ( encoding name ) → integer
Converts the supplied encoding name into an integer representing the internal identifier used in some system catalog tables. Returns -1 if an unknown encoding name is provided.
Version history 1
  1. 14 → 15 added

Definition snapshot: b7bd9cda · English manual source