↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Aggregate Functions

Computes the maximum of the non-null input values.

Reading PG 18current·documented in 27 of 27 versions, 7.1 to 20

Signatures & examples

max ( see text ) → same as input type
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.
Version history 8
  1. 19 → 20 changed
  2. 18 → 19 changed
  3. 17 → 18 changed
  4. 14 → 15 changed
  5. 12 → 13 changed
  6. 9.3 → 9.4 changed
  7. 7.2 → 7.3 changed
  8. 7.1 → 7.2 changed

Definition snapshot: b7bd9cda · English manual source