{"Entry":{"collection":"func","key":"pg-input-error-info","name":"pg_input_error_info","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"15","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"16"}],"content_hash":"34143712cfc7f9a7f005d197d4087a8d440a5c6390a49107c8b0baf077abc8a6","first_version":"16","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.253974+08:00","last_version":"20","name":"pg_input_error_info","name_key":"pg_input_error_info","position":28084,"present_in":["16","17","18","19","20"],"signature":"pg_input_error_info ( string text, type text ) → record ( message text, detail text, hint text, sql_error_code text )","signature_count":1,"slug":"pg-input-error-info","source_rev":"b7bd9cda","summary":"Tests whether the given string is valid input for the specified data type; if not, return the details of the error that would have been thrown.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-input-error-info","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-input-error-info","SourceRevision":"b7bd9cda","Facts":{"description":"Tests whether the given string is valid input for the specified data type; if not, return the details of the error that would have been thrown. If the input is valid, the results are NULL. The inputs are the same as for pg_input_is_valid.","description_html":"Tests whether the given \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e is valid input for the specified data type; if not, return the details of the error that would have been thrown. If the input is valid, the results are NULL. The inputs are the same as for \u003ccode class=\"function\"\u003epg_input_is_valid\u003c/code\u003e.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-INFO-VALIDITY-TABLE","file":"functions-info.html","slug":"18"},"group":"info","group_label":"System Information Functions And Operators","lang":"en","layout":"table-new","pages":["functions-info.html"],"prose_only":false,"signatures":[{"description":"Tests whether the given string is valid input for the specified data type; if not, return the details of the error that would have been thrown. If the input is valid, the results are NULL. The inputs are the same as for pg_input_is_valid.","description_html":"Tests whether the given \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e is valid input for the specified data type; if not, return the details of the error that would have been thrown. If the input is valid, the results are NULL. The inputs are the same as for \u003ccode class=\"function\"\u003epg_input_is_valid\u003c/code\u003e.","description_zh":"","description_zh_html":"","examples":[{"expr":"SELECT * FROM pg_input_error_info('42000000000', 'integer')","result":"                       message                        | detail | hint | sql_error_code\n------------------------------------------------------+--------+------+----------------\n value \"42000000000\" is out of range for type integer |        |      | 22003"}],"html":"\u003ccode class=\"function\"\u003epg_input_error_info\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etype\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003erecord\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003emessage\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edetail\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003ehint\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003esql_error_code\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e )","returns":"record","text":"pg_input_error_info ( string text, type text ) → record ( message text, detail text, hint text, sql_error_code text )","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-VALIDITY-TABLE","file":"functions-info.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-input-error-info","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_input_error_info","Summary":"测试给定的string是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与pg_input_is_valid 相同。","BodyHTML":"测试给定的\u003cem\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与\u003ccode\u003epg_input_is_valid\u003c/code\u003e 相同。\u003cpre\u003epg_input_error_info ( string text, type text ) → record ( message text, detail text, hint text, sql_error_code text )\u003c/pre\u003e测试给定的\u003cem\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与\u003ccode\u003epg_input_is_valid\u003c/code\u003e 相同。","SourceRevision":"ca936764","ContentHash":"9e3ef848c3f573fe04b01d2337f6f0035870ffa3bac29543e96d32594055a79b","Payload":{"description_zh":"测试给定的string是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与pg_input_is_valid 相同。","description_zh_html":"测试给定的\u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与\u003ccode class=\"function\"\u003epg_input_is_valid\u003c/code\u003e 相同。","signatures":[{"description_zh":"测试给定的string是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与pg_input_is_valid 相同。","description_zh_html":"测试给定的\u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与\u003ccode class=\"function\"\u003epg_input_is_valid\u003c/code\u003e 相同。","returns":"record","text":"pg_input_error_info ( string text, type text ) → record ( message text, detail text, hint text, sql_error_code text )","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"886d95bee6fb1f56de11158c256b7537169773f782463c465a8a4e1ac44ace12","Text":"pg_input_error_info ( string text, type text ) → record ( message text, detail text, hint text, sql_error_code text )","Returns":"record","Payload":{"description":"Tests whether the given string is valid input for the specified data type; if not, return the details of the error that would have been thrown. If the input is valid, the results are NULL. The inputs are the same as for pg_input_is_valid.","description_html":"Tests whether the given \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e is valid input for the specified data type; if not, return the details of the error that would have been thrown. If the input is valid, the results are NULL. The inputs are the same as for \u003ccode class=\"function\"\u003epg_input_is_valid\u003c/code\u003e.","description_zh":"","description_zh_html":"","examples":[{"expr":"SELECT * FROM pg_input_error_info('42000000000', 'integer')","result":"                       message                        | detail | hint | sql_error_code\n------------------------------------------------------+--------+------+----------------\n value \"42000000000\" is out of range for type integer |        |      | 22003"}],"html":"\u003ccode class=\"function\"\u003epg_input_error_info\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etype\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003erecord\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003emessage\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edetail\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003ehint\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003esql_error_code\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e )","returns":"record","text":"pg_input_error_info ( string text, type text ) → record ( message text, detail text, hint text, sql_error_code text )","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
