{"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","derived_content_hash":"0fb744b4e517a25653195b81e7d97892540673df72a360e942cf8e9f31cb40d2","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:336d2833690d5d70da4acd27605e2eb125abfd46be77a98030508c212c9fdec6","versions":{"16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"d1662dab1e0e21f891ab4ab85a1b0d7af9819f392246c4731ff925eb918f4b51","repair":"wiki-repair-20261023"},"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":"wiki-repair-20261023:336d2833690d5d70da4acd27605e2eb125abfd46be77a98030508c212c9fdec6","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":"wiki-repair-20261023:336d2833690d5d70da4acd27605e2eb125abfd46be77a98030508c212c9fdec6","Facts":{"description":"Tests whether the given value 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\u003evalue\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":"测试给定的 value 是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与 pg_input_is_valid 相同。","description_zh_html":"测试给定的 \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e 是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与 \u003ccode class=\"function\"\u003epg_input_is_valid\u003c/code\u003e 相同。","doc":{"anchor":"FUNCTIONS-INFO-VALIDITY-TABLE","file":"functions-info.html","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-info.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","version":"18.7"},{"file":"functions-info.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"f9684137c0b9fb17a691c4d905529d114472a507a007c15058f2703962b611d2","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"info","group_label":"系统信息函数和操作符","lang":"en","layout":"table-new","pages":["functions-info.html"],"prose_only":false,"signatures":[{"description":"Tests whether the given value 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\u003evalue\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":"测试给定的 value 是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与 pg_input_is_valid 相同。","description_zh_html":"测试给定的 \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e 是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与 \u003ccode class=\"function\"\u003epg_input_is_valid\u003c/code\u003e 相同。","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\u003evalue\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etype_name\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 ( value text, type_name text ) → record ( message text, detail text, hint text, sql_error_code text )","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-info.html","sha256":"7c33185e79430cfbda432dc4db277115c7ac846afccadfcf904ceb1bf2aa1ba5"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-VALIDITY-TABLE","file":"functions-info.html","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-input-error-info","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_input_error_info","Summary":"Tests whether the given value 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.","BodyHTML":"Tests whether the given \u003cem\u003e\u003ccode\u003evalue\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\u003epg_input_is_valid\u003c/code\u003e.","SourceRevision":"wiki-repair-20261023:336d2833690d5d70da4acd27605e2eb125abfd46be77a98030508c212c9fdec6","ContentHash":"637d600f630cbdbfa3847a3453596d8145dc76b71490c4f3d46a575d3be4dac5","Payload":{"description":"Tests whether the given value 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\u003evalue\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.","signatures":[{"description":"Tests whether the given value 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\u003evalue\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":"测试给定的 value 是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与 pg_input_is_valid 相同。","description_zh_html":"测试给定的 \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e 是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与 \u003ccode class=\"function\"\u003epg_input_is_valid\u003c/code\u003e 相同。","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\u003evalue\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etype_name\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 ( value text, type_name text ) → record ( message text, detail text, hint text, sql_error_code text )","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"63e86058b00ead97da52c4f7098ff9ae04364c719d44520ca6fa51e31352fbfb","Text":"pg_input_error_info ( value text, type_name text ) → record ( message text, detail text, hint text, sql_error_code text )","Returns":"record","Payload":{"description":"Tests whether the given value 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\u003evalue\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":"测试给定的 value 是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与 pg_input_is_valid 相同。","description_zh_html":"测试给定的 \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e 是否是指定数据类型的有效输入；如果不是，则返回本应抛出的错误详情。如果输入有效，则结果为 NULL。输入参数与 \u003ccode class=\"function\"\u003epg_input_is_valid\u003c/code\u003e 相同。","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\u003evalue\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etype_name\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 ( value text, type_name text ) → record ( message text, detail text, hint text, sql_error_code text )","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
