{"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","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"],"signature":"max ( see text ) → same as input type","signature_count":1,"slug":"max","source_rev":"b7bd9cda","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":"b7bd9cda","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":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","slug":"18"},"group":"aggregate","group_label":"Aggregate Functions","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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"max","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"max","Summary":"计算非空输入值的最大值。适用于任何数字、字符串、日期/时间或枚举类型，以及bytea、inet、interval、money、oid、pg_lsn、tid、xid8，以及包含可排序数据类型的数组和复合类型。","BodyHTML":"计算非空输入值的最大值。适用于任何数字、字符串、日期/时间或枚举类型，以及\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，以及包含可排序数据类型的数组和复合类型。\u003cpre\u003emax ( see text ) → same as input type\u003c/pre\u003e计算非空输入值的最大值。适用于任何数字、字符串、日期/时间或枚举类型，以及\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，以及包含可排序数据类型的数组和复合类型。","SourceRevision":"ca936764","ContentHash":"e2993d8403ffca40a636a1d668d2d415efa5c076943af9ecb68abec7114a3e74","Payload":{"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，以及包含可排序数据类型的数组和复合类型。","signatures":[{"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，以及包含可排序数据类型的数组和复合类型。","returns":"same as input type","text":"max ( see text ) → same as input type","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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}
