doc: Remove one example related to pg_input_error_info()
authorMichael Paquier <[email protected]>
Tue, 30 Apr 2024 10:24:12 +0000 (19:24 +0900)
committerMichael Paquier <[email protected]>
Tue, 30 Apr 2024 10:24:12 +0000 (19:24 +0900)
This slightly bloated the contents of the function table for this entry,
without really bringing extra value.

Per discussion with Jian He and David G. Johnston.

Discussion: https://postgr.es/m/CACJufxGdyoBJQMSxwdxNK=k8M5WUth5FDFd4Wq_K4f7+1J2xuQ@mail.gmail.com

doc/src/sgml/func.sgml

index 1928de576237842e4953f9272ff8d472e21fc406..36b2c5427af39acc7de1e7d189ab865c9bdc7064 100644 (file)
@@ -26879,21 +26879,12 @@ SELECT currval(pg_get_serial_sequence('sometable', 'id'));
         directly.
        </para>
        <para>
-        <literal>select * from pg_input_error_info('42000000000', 'integer')</literal>
+        <literal>SELECT * FROM pg_input_error_info('42000000000', 'integer')</literal>
         <returnvalue></returnvalue>
 <programlisting>
                        message                        | detail | hint | sql_error_code
 ------------------------------------------------------+--------+------+----------------
  value "42000000000" is out of range for type integer |        |      | 22003
-</programlisting>
-       </para>
-       <para>
-        <literal>select message, detail from pg_input_error_info('1234.567', 'numeric(7,4)')</literal>
-        <returnvalue></returnvalue>
-<programlisting>
-        message         |                                      detail
-------------------------+----------------------------------&zwsp;-------------------------------------------------
- numeric field overflow | A field with precision 7, scale 4 must round to an absolute value less than 10^3.
 </programlisting>
        </para></entry>
       </row>