{"Entry":{"collection":"func","key":"md5","name":"md5","aliases":[],"metadata":{"changed_in":["8.1","8.2"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"7.4"},{"descriptions_changed":true,"doc_overhaul":false,"from":"7.4","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"8.0"},{"descriptions_changed":false,"doc_overhaul":false,"from":"8.0","group_changed":null,"signatures":{"added":["md5 ( string ) → text"],"removed":[]},"status":"changed","to":"8.1"},{"descriptions_changed":false,"doc_overhaul":false,"from":"8.1","group_changed":null,"signatures":{"added":[],"removed":["md5 ( string text ) → text"]},"status":"changed","to":"8.2"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"4bb5631e3c4081072e0cd6d8aa6ebcd9d794f4e1658ed45e601556d09c6f3fee","first_version":"7.4","group":"string","group_label":"String Functions And Operators","groups":["string","binarystring"],"imported_at":"2026-09-27T17:57:28.35999+08:00","last_version":"20","name":"md5","name_key":"md5","position":3017,"present_in":["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"],"signature":"md5 ( text ) → text","signature_count":2,"slug":"md5","source_rev":"b7bd9cda","summary":"Computes the MD5 hash of the argument, with the result written in hexadecimal.","summary_zh":""}},"Definition":{"Collection":"func","Key":"md5","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"md5","SourceRevision":"b7bd9cda","Facts":{"description":"Computes the MD5 hash of the argument, with the result written in hexadecimal.","description_html":"Computes the MD5 \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-HASH-NOTE\"\u003ehash\u003c/a\u003e of the argument, with the result written in hexadecimal.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","slug":"18"},"group":"string","group_label":"String Functions And Operators","lang":"en","layout":"table-new","pages":["functions-string.html","functions-binarystring.html"],"prose_only":false,"signatures":[{"description":"Computes the MD5 hash of the argument, with the result written in hexadecimal.","description_html":"Computes the MD5 \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-HASH-NOTE\"\u003ehash\u003c/a\u003e of the argument, with the result written in hexadecimal.","description_zh":"","description_zh_html":"","examples":[{"expr":"md5('abc')","result":"900150983cd24fb0​d6963f7d28e17f72"}],"html":"\u003ccode class=\"function\"\u003emd5\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"md5 ( text ) → text","zh_from":""},{"description":"Computes the MD5 hash of the binary string, with the result written in hexadecimal.","description_html":"Computes the MD5 \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-HASH-NOTE\"\u003ehash\u003c/a\u003e of the binary string, with the result written in hexadecimal.","description_zh":"","description_zh_html":"","examples":[{"expr":"md5('Th\\000omas'::bytea)","result":"8ab2d3c9689aaf18​b4958c334c82d8b1"}],"html":"\u003ccode class=\"function\"\u003emd5\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"md5 ( bytea ) → text","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"md5","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"md5","Summary":"计算参数的 MD5 hash，结果以十六进制形式写入。","BodyHTML":"计算参数的 MD5 \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-HASH-NOTE\" rel=\"nofollow\"\u003ehash\u003c/a\u003e，结果以十六进制形式写入。\u003cpre\u003emd5 ( text ) → text\u003c/pre\u003e计算参数的 MD5 \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-HASH-NOTE\" rel=\"nofollow\"\u003ehash\u003c/a\u003e，结果以十六进制形式写入。\u003cpre\u003emd5 ( bytea ) → text\u003c/pre\u003e计算二进制字符串的MD5 \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-HASH-NOTE\" rel=\"nofollow\"\u003ehash\u003c/a\u003e，结果以十六进制形式写入。","SourceRevision":"ca936764","ContentHash":"b81332bba38f55cd2aeb3f0d7b8e10166a920cb1e0a40c54fb86fe8d4dd13a06","Payload":{"description_zh":"计算参数的 MD5 hash，结果以十六进制形式写入。","description_zh_html":"计算参数的 MD5 \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-HASH-NOTE\"\u003ehash\u003c/a\u003e，结果以十六进制形式写入。","signatures":[{"description_zh":"计算参数的 MD5 hash，结果以十六进制形式写入。","description_zh_html":"计算参数的 MD5 \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-HASH-NOTE\"\u003ehash\u003c/a\u003e，结果以十六进制形式写入。","returns":"text","text":"md5 ( text ) → text","zh_from":"doc"},{"description_zh":"计算二进制字符串的MD5 hash，结果以十六进制形式写入。","description_zh_html":"计算二进制字符串的MD5 \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-HASH-NOTE\"\u003ehash\u003c/a\u003e，结果以十六进制形式写入。","returns":"text","text":"md5 ( bytea ) → text","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","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":"14c92aceeeec482dca610c0f0f5053f57c27dfebcda05180574a1e86e199c4bf","Text":"md5 ( text ) → text","Returns":"text","Payload":{"description":"Computes the MD5 hash of the argument, with the result written in hexadecimal.","description_html":"Computes the MD5 \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-HASH-NOTE\"\u003ehash\u003c/a\u003e of the argument, with the result written in hexadecimal.","description_zh":"","description_zh_html":"","examples":[{"expr":"md5('abc')","result":"900150983cd24fb0​d6963f7d28e17f72"}],"html":"\u003ccode class=\"function\"\u003emd5\u003c/code\u003e ( \u003ccode class=\"type\"\u003etext\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"md5 ( text ) → text","zh_from":""}},{"Version":"18","Ordinal":1,"Hash":"9c0d5f71bf38ee0aff5a0d8b298cff054d2adbf5145c3de6d2f9068e441bcbc2","Text":"md5 ( bytea ) → text","Returns":"text","Payload":{"description":"Computes the MD5 hash of the binary string, with the result written in hexadecimal.","description_html":"Computes the MD5 \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-HASH-NOTE\"\u003ehash\u003c/a\u003e of the binary string, with the result written in hexadecimal.","description_zh":"","description_zh_html":"","examples":[{"expr":"md5('Th\\000omas'::bytea)","result":"8ab2d3c9689aaf18​b4958c334c82d8b1"}],"html":"\u003ccode class=\"function\"\u003emd5\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"md5 ( bytea ) → text","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
