File tree 2 files changed +35
-3
lines changed
2 files changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -2819,7 +2819,8 @@ SCRAM-SHA-256$<replaceable><iteration count></replaceable>:<replaceable>&l
2819
2819
<structfield>conforencoding</structfield> <type>int4</type>
2820
2820
</para>
2821
2821
<para>
2822
- Source encoding ID
2822
+ Source encoding ID (<link linkend="pg-encoding-to-char"><function>pg_encoding_to_char()</function></link>
2823
+ can translate this number to the encoding name)
2823
2824
</para></entry>
2824
2825
</row>
2825
2826
@@ -2828,7 +2829,8 @@ SCRAM-SHA-256$<replaceable><iteration count></replaceable>:<replaceable>&l
2828
2829
<structfield>contoencoding</structfield> <type>int4</type>
2829
2830
</para>
2830
2831
<para>
2831
- Destination encoding ID
2832
+ Destination encoding ID (<link linkend="pg-encoding-to-char"><function>pg_encoding_to_char()</function></link>
2833
+ can translate this number to the encoding name)
2832
2834
</para></entry>
2833
2835
</row>
2834
2836
@@ -2927,7 +2929,7 @@ SCRAM-SHA-256$<replaceable><iteration count></replaceable>:<replaceable>&l
2927
2929
</para>
2928
2930
<para>
2929
2931
Character encoding for this database
2930
- (<function>pg_encoding_to_char()</function> can translate
2932
+ (<link linkend="pg-encoding-to-char">< function>pg_encoding_to_char()</function></link > can translate
2931
2933
this number to the encoding name)
2932
2934
</para></entry>
2933
2935
</row>
Original file line number Diff line number Diff line change @@ -23328,6 +23328,36 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
23328
23328
</para></entry>
23329
23329
</row>
23330
23330
23331
+ <row>
23332
+ <entry id="pg-char-to-encoding" role="func_table_entry"><para role="func_signature">
23333
+ <indexterm>
23334
+ <primary>pg_char_to_encoding</primary>
23335
+ </indexterm>
23336
+ <function>pg_char_to_encoding</function> ( <parameter>encoding</parameter> <type>name</type> )
23337
+ <returnvalue>integer</returnvalue>
23338
+ </para>
23339
+ <para>
23340
+ Converts the supplied encoding name into an integer representing the
23341
+ internal identifier used in some system catalog tables.
23342
+ Returns <literal>-1</literal> if an unknown encoding name is provided.
23343
+ </para></entry>
23344
+ </row>
23345
+
23346
+ <row>
23347
+ <entry id="pg-encoding-to-char" role="func_table_entry"><para role="func_signature">
23348
+ <indexterm>
23349
+ <primary>pg_encoding_to_char</primary>
23350
+ </indexterm>
23351
+ <function>pg_encoding_to_char</function> ( <parameter>encoding</parameter> <type>integer</type> )
23352
+ <returnvalue>name</returnvalue>
23353
+ </para>
23354
+ <para>
23355
+ Converts the integer used as the internal identifier of an encoding in some
23356
+ system catalog tables into a human-readable string.
23357
+ Returns an empty string if an invalid encoding number is provided.
23358
+ </para></entry>
23359
+ </row>
23360
+
23331
23361
<row>
23332
23362
<entry role="func_table_entry"><para role="func_signature">
23333
23363
<indexterm>
You can’t perform that action at this time.
0 commit comments