{"Entry":{"collection":"func","key":"pg-input-is-valid","name":"pg_input_is_valid","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":"992eabb62c0208b2026d0991e4d9ea98b9b0075e2ac517feb8187b35eb2cd43a","derived_content_hash":"b05b066664befe519c3caf63a8b0f7c49be1e22e05c9169ceb04c4269556b55e","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:a88f3c0d31a6750a99bb72913b7e45996c1e8d70396a369893df3c8332788333","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.256159+08:00","last_version":"20","name":"pg_input_is_valid","name_key":"pg_input_is_valid","position":28085,"present_in":["16","17","18","19","20"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"7810026ea7df09b0b39aea84c8dc5d8f8df5a6efdcc9f0e2c3612585a5999171","repair":"wiki-repair-20261023"},"signature":"pg_input_is_valid ( string text, type text ) → boolean","signature_count":1,"slug":"pg-input-is-valid","source_rev":"wiki-repair-20261023:a88f3c0d31a6750a99bb72913b7e45996c1e8d70396a369893df3c8332788333","summary":"Tests whether the given string is valid input for the specified data type, returning true or false.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-input-is-valid","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-input-is-valid","SourceRevision":"wiki-repair-20261023:a88f3c0d31a6750a99bb72913b7e45996c1e8d70396a369893df3c8332788333","Facts":{"description":"Tests whether the given string is valid input for the specified data type, returning true or false.","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, returning true or false.","description_zh":"测试给定的 string 是否是指定数据类型的有效输入，返回 true 或 false。","description_zh_html":"测试给定的 \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e 是否是指定数据类型的有效输入，返回 true 或 false。","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 string is valid input for the specified data type, returning true or false.","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, returning true or false.","description_zh":"测试给定的 string 是否是指定数据类型的有效输入，返回 true 或 false。","description_zh_html":"测试给定的 \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e 是否是指定数据类型的有效输入，返回 true 或 false。","examples":[{"expr":"pg_input_is_valid('42', 'integer')","result":"t"},{"expr":"pg_input_is_valid('42000000000', 'integer')","result":"f"},{"expr":"pg_input_is_valid('1234.567', 'numeric(7,4)')","result":"f"}],"html":"\u003ccode class=\"function\"\u003epg_input_is_valid\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\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"pg_input_is_valid ( string text, type text ) → boolean","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-is-valid","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_input_is_valid","Summary":"Tests whether the given string is valid input for the specified data type, returning true or false.","BodyHTML":"Tests whether the given \u003cem\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e is valid input for the specified data type, returning true or false.","SourceRevision":"wiki-repair-20261023:a88f3c0d31a6750a99bb72913b7e45996c1e8d70396a369893df3c8332788333","ContentHash":"c2be6e763174c1a75a0c05ecad098725506a5f6631030a89266075fbb956ddf4","Payload":{"description":"Tests whether the given string is valid input for the specified data type, returning true or false.","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, returning true or false.","signatures":[{"description":"Tests whether the given string is valid input for the specified data type, returning true or false.","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, returning true or false.","description_zh":"测试给定的 string 是否是指定数据类型的有效输入，返回 true 或 false。","description_zh_html":"测试给定的 \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e 是否是指定数据类型的有效输入，返回 true 或 false。","examples":[{"expr":"pg_input_is_valid('42', 'integer')","result":"t"},{"expr":"pg_input_is_valid('42000000000', 'integer')","result":"f"},{"expr":"pg_input_is_valid('1234.567', 'numeric(7,4)')","result":"f"}],"html":"\u003ccode class=\"function\"\u003epg_input_is_valid\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\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"pg_input_is_valid ( string text, type text ) → boolean","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":"2a63ab1da42e2e06f854c56f00bdcdc4f8fdd1a42deec6c3109d80709869c3cb","Text":"pg_input_is_valid ( string text, type text ) → boolean","Returns":"boolean","Payload":{"description":"Tests whether the given string is valid input for the specified data type, returning true or false.","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, returning true or false.","description_zh":"测试给定的 string 是否是指定数据类型的有效输入，返回 true 或 false。","description_zh_html":"测试给定的 \u003cem class=\"parameter\"\u003e\u003ccode\u003estring\u003c/code\u003e\u003c/em\u003e 是否是指定数据类型的有效输入，返回 true 或 false。","examples":[{"expr":"pg_input_is_valid('42', 'integer')","result":"t"},{"expr":"pg_input_is_valid('42000000000', 'integer')","result":"f"},{"expr":"pg_input_is_valid('1234.567', 'numeric(7,4)')","result":"f"}],"html":"\u003ccode class=\"function\"\u003epg_input_is_valid\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\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"pg_input_is_valid ( string text, type text ) → boolean","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
