{"Entry":{"collection":"func","key":"decode","name":"decode","aliases":[],"metadata":{"changed_in":["8.4"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.1","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"7.2"},{"descriptions_changed":true,"doc_overhaul":false,"from":"7.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"7.3"},{"descriptions_changed":true,"doc_overhaul":false,"from":"7.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"7.4"},{"descriptions_changed":true,"doc_overhaul":false,"from":"8.3","group_changed":null,"signatures":{"added":["decode ( string text, format text ) → bytea"],"removed":["decode ( string text, type text ) → bytea"]},"status":"changed","to":"8.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":{"from":"string","to":"binarystring"},"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"9c7fa324c28be68b88437f1153a691bd55708174ecbb4818abacab5e36993653","derived_content_hash":"ebe9d565518067c62345ab828843ef1669c69079dfcaff99034a9f075d99a158","first_version":"7.2","group":"binarystring","group_label":"Binary String Functions And Operators","groups":["string","binarystring"],"imported_at":"2026-09-27T17:57:28.472926+08:00","last_version":"20","name":"decode","name_key":"decode","position":4006,"present_in":["7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:cae28962e92e3741dffd3a5950f6d445e8febb3463d7a4c6ee3cba501ecd8c58","receipt_sha256":"fb7c48243fed632954e8f45647e3d825ae632003db77eb879a09814cc96244f7","repair":"wiki-repair-20261023"},"signature":"decode ( string text, format text ) → bytea","signature_count":1,"slug":"decode","source_rev":"wiki-repair-20261023:6114afe21f65cab35572869b228346f948b64b256df1d012d4080ede9b0fbd3f","summary":"Decodes binary data from a textual representation; supported format values are the same as for encode.","summary_zh":""}},"Definition":{"Collection":"func","Key":"decode","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"decode","SourceRevision":"wiki-repair-20261023:6114afe21f65cab35572869b228346f948b64b256df1d012d4080ede9b0fbd3f","Facts":{"description":"Decodes binary data from a textual representation; supported format values are the same as for encode.","description_html":"Decodes binary data from a textual representation; supported \u003cem class=\"parameter\"\u003e\u003ccode\u003eformat\u003c/code\u003e\u003c/em\u003e values are the same as for \u003ccode class=\"function\"\u003eencode\u003c/code\u003e.","description_zh":"从文本表示中解码二进制数据；支持的 format 值与 encode 相同。","description_zh_html":"从文本表示中解码二进制数据；支持的 \u003cem class=\"parameter\"\u003e\u003ccode\u003eformat\u003c/code\u003e\u003c/em\u003e 值与 \u003ccode class=\"function\"\u003eencode\u003c/code\u003e 相同。","doc":{"anchor":"FUNCTIONS-BINARYSTRING-CONVERSIONS","file":"functions-binarystring.html","slug":"18"},"group":"binarystring","group_label":"Binary String Functions And Operators","lang":"en","layout":"table-new","pages":["functions-binarystring.html"],"prose_only":false,"signatures":[{"description":"Decodes binary data from a textual representation; supported format values are the same as for encode.","description_html":"Decodes binary data from a textual representation; supported \u003cem class=\"parameter\"\u003e\u003ccode\u003eformat\u003c/code\u003e\u003c/em\u003e values are the same as for \u003ccode class=\"function\"\u003eencode\u003c/code\u003e.","description_zh":"从文本表示中解码二进制数据；支持的 format 值与 encode 相同。","description_zh_html":"从文本表示中解码二进制数据；支持的 \u003cem class=\"parameter\"\u003e\u003ccode\u003eformat\u003c/code\u003e\u003c/em\u003e 值与 \u003ccode class=\"function\"\u003eencode\u003c/code\u003e 相同。","examples":[{"expr":"decode('MTIzAAE=', 'base64')","result":"\\x3132330001"}],"html":"\u003ccode class=\"function\"\u003edecode\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\u003eformat\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebytea\u003c/code\u003e","returns":"bytea","text":"decode ( string text, format text ) → bytea","zh_from":"same-version-pgdoc"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-binarystring.html","sha256":"a98a1aec8735ec5efda751ce6130ddf7f9294aa38d0c0572205fff95132250b9"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-pgdoc"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-BINARYSTRING-CONVERSIONS","file":"functions-binarystring.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"decode","SourceDatabase":"center","Version":"18","Locale":"en","Title":"decode","Summary":"Decodes binary data from a textual representation; supported format values are the same as for encode.","BodyHTML":"Decodes binary data from a textual representation; supported \u003cem\u003e\u003ccode\u003eformat\u003c/code\u003e\u003c/em\u003e values are the same as for \u003ccode\u003eencode\u003c/code\u003e.","SourceRevision":"wiki-repair-20261023:6114afe21f65cab35572869b228346f948b64b256df1d012d4080ede9b0fbd3f","ContentHash":"747b8d6ca5392c8ef599876ed99c572dbafeac436adf4b634c3c1d94afe479f3","Payload":{"description":"Decodes binary data from a textual representation; supported format values are the same as for encode.","description_html":"Decodes binary data from a textual representation; supported \u003cem class=\"parameter\"\u003e\u003ccode\u003eformat\u003c/code\u003e\u003c/em\u003e values are the same as for \u003ccode class=\"function\"\u003eencode\u003c/code\u003e.","signatures":[{"description":"Decodes binary data from a textual representation; supported format values are the same as for encode.","description_html":"Decodes binary data from a textual representation; supported \u003cem class=\"parameter\"\u003e\u003ccode\u003eformat\u003c/code\u003e\u003c/em\u003e values are the same as for \u003ccode class=\"function\"\u003eencode\u003c/code\u003e.","description_zh":"从文本表示中解码二进制数据；支持的 format 值与 encode 相同。","description_zh_html":"从文本表示中解码二进制数据；支持的 \u003cem class=\"parameter\"\u003e\u003ccode\u003eformat\u003c/code\u003e\u003c/em\u003e 值与 \u003ccode class=\"function\"\u003eencode\u003c/code\u003e 相同。","examples":[{"expr":"decode('MTIzAAE=', 'base64')","result":"\\x3132330001"}],"html":"\u003ccode class=\"function\"\u003edecode\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\u003eformat\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebytea\u003c/code\u003e","returns":"bytea","text":"decode ( string text, format text ) → bytea","zh_from":"same-version-pgdoc"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"2ab1ee3f2474321360b52bb3fbc3429cd53658a00841188cda4dc77aa5b8266d","Text":"decode ( string text, format text ) → bytea","Returns":"bytea","Payload":{"description":"Decodes binary data from a textual representation; supported format values are the same as for encode.","description_html":"Decodes binary data from a textual representation; supported \u003cem class=\"parameter\"\u003e\u003ccode\u003eformat\u003c/code\u003e\u003c/em\u003e values are the same as for \u003ccode class=\"function\"\u003eencode\u003c/code\u003e.","description_zh":"从文本表示中解码二进制数据；支持的 format 值与 encode 相同。","description_zh_html":"从文本表示中解码二进制数据；支持的 \u003cem class=\"parameter\"\u003e\u003ccode\u003eformat\u003c/code\u003e\u003c/em\u003e 值与 \u003ccode class=\"function\"\u003eencode\u003c/code\u003e 相同。","examples":[{"expr":"decode('MTIzAAE=', 'base64')","result":"\\x3132330001"}],"html":"\u003ccode class=\"function\"\u003edecode\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\u003eformat\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebytea\u003c/code\u003e","returns":"bytea","text":"decode ( string text, format text ) → bytea","zh_from":"same-version-pgdoc"}}],"Spellings":null,"SQLState":null,"Evidence":null}
