diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index 384e6eaa3b..fd6910ddbe 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -2816,22 +2816,24 @@ SCRAM-SHA-256$<iteration count>:&l conforencoding int4 - Source encoding ID + Source encoding ID (pg_encoding_to_char() + can translate this number to the encoding name) contoencoding int4 - Destination encoding ID + Destination encoding ID (pg_encoding_to_char() + can translate this number to the encoding name) conproc regproc @@ -2924,13 +2926,13 @@ SCRAM-SHA-256$<iteration count>:&l encoding int4 Character encoding for this database - (pg_encoding_to_char() can translate + (pg_encoding_to_char() can translate this number to the encoding name) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 78812b2dbe..42dff83e16 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -23325,12 +23325,42 @@ SELECT pg_type_is_visible('myschema.widget'::regtype); Returns the SQL name for a data type that is identified by its type OID and possibly a type modifier. Pass NULL for the type modifier if no specific modifier is known. + + + + pg_char_to_encoding + + 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. + + + + + + + pg_encoding_to_char + + 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. + + + pg_get_catalog_foreign_keys pg_get_catalog_foreign_keys ()