{"Entry":{"collection":"func","key":"max","name":"max","aliases":[],"metadata":{"changed_in":["7.2","7.3"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.1","group_changed":null,"signatures":{"added":["max ( expression )"],"removed":["MAX ( expression )"]},"status":"changed","to":"7.2"},{"descriptions_changed":true,"doc_overhaul":false,"from":"7.2","group_changed":null,"signatures":{"added":["max ( expression ) → same as argument type"],"removed":["max ( expression )"]},"status":"changed","to":"7.3"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"9.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":true,"doc_overhaul":false,"from":"14","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"15"},{"descriptions_changed":true,"doc_overhaul":false,"from":"17","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"18"},{"descriptions_changed":true,"doc_overhaul":false,"from":"18","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"19"},{"descriptions_changed":true,"doc_overhaul":false,"from":"19","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"20"}],"content_hash":"72d43a9fef71e7ff59cc1b45f114ff8a9b65cc45e838c14a1b90f93619a83e80","derived_content_hash":"c5e3562258c0659fd109f8cc00e3b53633ac9d1b35ba4efba4ae8743c62f870d","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:9be6a67ed0793a0d48fbd480c14ed3fca8418a616197fc09310ff609410499a3","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"7.1","group":"aggregate","group_label":"Aggregate Functions","groups":["aggregate"],"imported_at":"2026-09-27T17:57:28.929998+08:00","last_version":"20","name":"max","name_key":"max","position":21030,"present_in":["7.1","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:88d224eeea4506dc0acbfafa73ff5a31e9d3e84eeee9f18690fa01506ca41965","receipt_sha256":"414ef13b343fa7eb42a4898689b7c1746c4c22387d7a13315f24050602796314","repair":"wiki-repair-20261023"},"signature":"max ( see text ) → same as input type","signature_count":1,"slug":"max","source_rev":"wiki-repair-20261023:9be6a67ed0793a0d48fbd480c14ed3fca8418a616197fc09310ff609410499a3","summary":"Computes the maximum of the non-null input values.","summary_zh":""}},"Definition":{"Collection":"func","Key":"max","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"max","SourceRevision":"wiki-repair-20261023:9be6a67ed0793a0d48fbd480c14ed3fca8418a616197fc09310ff609410499a3","Facts":{"description":"Computes the maximum of the non-null input values. Available for any numeric, string, date/time, or enum type, as well as bytea, inet, interval, money, oid, pg_lsn, tid, xid8, and also arrays and composite types containing sortable data types.","description_html":"Computes the maximum of the non-null input values. Available for any numeric, string, date/time, or enum type, as well as \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e, \u003ccode class=\"type\"\u003einet\u003c/code\u003e, \u003ccode class=\"type\"\u003einterval\u003c/code\u003e, \u003ccode class=\"type\"\u003emoney\u003c/code\u003e, \u003ccode class=\"type\"\u003eoid\u003c/code\u003e, \u003ccode class=\"type\"\u003epg_lsn\u003c/code\u003e, \u003ccode class=\"type\"\u003etid\u003c/code\u003e, \u003ccode class=\"type\"\u003exid8\u003c/code\u003e, and also arrays and composite types containing sortable data types.","description_zh":"计算非空输入值的最大值。适用于任何数字、字符串、日期/时间或枚举类型，以及 bytea、inet、interval、money、oid、pg_lsn、tid、xid8，以及包含可排序数据类型的数组和复合类型。","description_zh_html":"计算非空输入值的最大值。适用于任何数字、字符串、日期/时间或枚举类型，以及 \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e、\u003ccode class=\"type\"\u003einet\u003c/code\u003e、\u003ccode class=\"type\"\u003einterval\u003c/code\u003e、\u003ccode class=\"type\"\u003emoney\u003c/code\u003e、\u003ccode class=\"type\"\u003eoid\u003c/code\u003e、\u003ccode class=\"type\"\u003epg_lsn\u003c/code\u003e、\u003ccode class=\"type\"\u003etid\u003c/code\u003e、\u003ccode class=\"type\"\u003exid8\u003c/code\u003e，以及包含可排序数据类型的数组和复合类型。","doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-aggregate.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","version":"18.7"},{"file":"functions-aggregate.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"0bf7506d27b71666fc74840a21a8f77c8a92735174f1d05033865961722e457c","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"aggregate","group_label":"聚合函数","lang":"en","layout":"table-new","pages":["functions-aggregate.html"],"prose_only":false,"signatures":[{"description":"Computes the maximum of the non-null input values. Available for any numeric, string, date/time, or enum type, as well as bytea, inet, interval, money, oid, pg_lsn, tid, xid8, and also arrays and composite types containing sortable data types.","description_html":"Computes the maximum of the non-null input values. Available for any numeric, string, date/time, or enum type, as well as \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e, \u003ccode class=\"type\"\u003einet\u003c/code\u003e, \u003ccode class=\"type\"\u003einterval\u003c/code\u003e, \u003ccode class=\"type\"\u003emoney\u003c/code\u003e, \u003ccode class=\"type\"\u003eoid\u003c/code\u003e, \u003ccode class=\"type\"\u003epg_lsn\u003c/code\u003e, \u003ccode class=\"type\"\u003etid\u003c/code\u003e, \u003ccode class=\"type\"\u003exid8\u003c/code\u003e, and also arrays and composite types containing sortable data types.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003emax\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003esee text\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003e\u003cem class=\"replaceable\"\u003e\u003ccode\u003esame as input type\u003c/code\u003e\u003c/em\u003e\u003c/code\u003e","returns":"same as input type","text":"max ( see text ) → same as input type","zh_from":""}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-aggregate.html","sha256":"68da7af09e2749a855188bbbff99ae036fc7eece4e19b8e048baffd28aa3ca59"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"max","SourceDatabase":"center","Version":"18","Locale":"en","Title":"max","Summary":"Computes the maximum of the non-null input values. Available for any numeric, string, date/time, or enum type, as well as bytea, inet, interval, money, oid, pg_lsn, tid, xid8, and also arrays and composite types containing sortable data types.","BodyHTML":"Computes the maximum of the non-null input values. Available for any numeric, string, date/time, or enum type, as well as \u003ccode\u003ebytea\u003c/code\u003e, \u003ccode\u003einet\u003c/code\u003e, \u003ccode\u003einterval\u003c/code\u003e, \u003ccode\u003emoney\u003c/code\u003e, \u003ccode\u003eoid\u003c/code\u003e, \u003ccode\u003epg_lsn\u003c/code\u003e, \u003ccode\u003etid\u003c/code\u003e, \u003ccode\u003exid8\u003c/code\u003e, and also arrays and composite types containing sortable data types.","SourceRevision":"wiki-repair-20261023:9be6a67ed0793a0d48fbd480c14ed3fca8418a616197fc09310ff609410499a3","ContentHash":"5391f6e34a82bccdd56a867c5ba040aaab5fe30552bf9d58d823368269d029a0","Payload":{"description":"Computes the maximum of the non-null input values. Available for any numeric, string, date/time, or enum type, as well as bytea, inet, interval, money, oid, pg_lsn, tid, xid8, and also arrays and composite types containing sortable data types.","description_html":"Computes the maximum of the non-null input values. Available for any numeric, string, date/time, or enum type, as well as \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e, \u003ccode class=\"type\"\u003einet\u003c/code\u003e, \u003ccode class=\"type\"\u003einterval\u003c/code\u003e, \u003ccode class=\"type\"\u003emoney\u003c/code\u003e, \u003ccode class=\"type\"\u003eoid\u003c/code\u003e, \u003ccode class=\"type\"\u003epg_lsn\u003c/code\u003e, \u003ccode class=\"type\"\u003etid\u003c/code\u003e, \u003ccode class=\"type\"\u003exid8\u003c/code\u003e, and also arrays and composite types containing sortable data types.","signatures":[{"description":"Computes the maximum of the non-null input values. Available for any numeric, string, date/time, or enum type, as well as bytea, inet, interval, money, oid, pg_lsn, tid, xid8, and also arrays and composite types containing sortable data types.","description_html":"Computes the maximum of the non-null input values. Available for any numeric, string, date/time, or enum type, as well as \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e, \u003ccode class=\"type\"\u003einet\u003c/code\u003e, \u003ccode class=\"type\"\u003einterval\u003c/code\u003e, \u003ccode class=\"type\"\u003emoney\u003c/code\u003e, \u003ccode class=\"type\"\u003eoid\u003c/code\u003e, \u003ccode class=\"type\"\u003epg_lsn\u003c/code\u003e, \u003ccode class=\"type\"\u003etid\u003c/code\u003e, \u003ccode class=\"type\"\u003exid8\u003c/code\u003e, and also arrays and composite types containing sortable data types.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003emax\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003esee text\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003e\u003cem class=\"replaceable\"\u003e\u003ccode\u003esame as input type\u003c/code\u003e\u003c/em\u003e\u003c/code\u003e","returns":"same as input type","text":"max ( see text ) → same as input type","zh_from":""}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.1","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":"2c5c399562a7148301c7462229fa4df9bc34a59eabc384a510a86714c1739c35","Text":"max ( see text ) → same as input type","Returns":"same as input type","Payload":{"description":"Computes the maximum of the non-null input values. Available for any numeric, string, date/time, or enum type, as well as bytea, inet, interval, money, oid, pg_lsn, tid, xid8, and also arrays and composite types containing sortable data types.","description_html":"Computes the maximum of the non-null input values. Available for any numeric, string, date/time, or enum type, as well as \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e, \u003ccode class=\"type\"\u003einet\u003c/code\u003e, \u003ccode class=\"type\"\u003einterval\u003c/code\u003e, \u003ccode class=\"type\"\u003emoney\u003c/code\u003e, \u003ccode class=\"type\"\u003eoid\u003c/code\u003e, \u003ccode class=\"type\"\u003epg_lsn\u003c/code\u003e, \u003ccode class=\"type\"\u003etid\u003c/code\u003e, \u003ccode class=\"type\"\u003exid8\u003c/code\u003e, and also arrays and composite types containing sortable data types.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003emax\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003esee text\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003e\u003cem class=\"replaceable\"\u003e\u003ccode\u003esame as input type\u003c/code\u003e\u003c/em\u003e\u003c/code\u003e","returns":"same as input type","text":"max ( see text ) → same as input type","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
