System Catalogs / System catalogs
pg_aggregate
Read the PG 18 manualThe catalog pg_aggregate stores information about aggregate functions.
Reading PG 18current·documented in 24 of 24 versions, 7.4 to 20
- Kind
- System catalogs
- Columns in this snapshot
- 22
- Definition source
- English manual
- Metadata snapshot
- 18.6
Columns 22
As listed in the PostgreSQL 18 manual.
| Column | Type | Description / reference |
|---|---|---|
aggfnoid | regprocNOT NULL | pg_proc OID of the aggregate function pg_proc.oid |
aggkind | charNOT NULL | Aggregate kind: n for “normal” aggregates, o for “ordered-set” aggregates, or h for “hypothetical-set” aggregates |
aggnumdirectargs | int2NOT NULL | Number of direct (non-aggregated) arguments of an ordered-set or hypothetical-set aggregate, counting a variadic array as one argument. If equal to pronargs, the aggregate must be variadic and the variadic array describes the aggregated arguments as well as the final direct arguments. Always zero for normal aggregates. |
aggtransfn | regprocNOT NULL | Transition function pg_proc.oid |
aggfinalfn | regprocNOT NULL | Final function (zero if none) pg_proc.oid |
aggcombinefn | regprocNOT NULL | Combine function (zero if none) pg_proc.oid |
aggserialfn | regprocNOT NULL | Serialization function (zero if none) pg_proc.oid |
aggdeserialfn | regprocNOT NULL | Deserialization function (zero if none) pg_proc.oid |
aggmtransfn | regprocNOT NULL | Forward transition function for moving-aggregate mode (zero if none) pg_proc.oid |
aggminvtransfn | regprocNOT NULL | Inverse transition function for moving-aggregate mode (zero if none) pg_proc.oid |
aggmfinalfn | regprocNOT NULL | Final function for moving-aggregate mode (zero if none) pg_proc.oid |
aggfinalextra | boolNOT NULL | True to pass extra dummy arguments to aggfinalfn |
aggmfinalextra | boolNOT NULL | True to pass extra dummy arguments to aggmfinalfn |
aggfinalmodify | charNOT NULL | Whether aggfinalfn modifies the transition state value: r if it is read-only, s if the aggtransfn cannot be applied after the aggfinalfn, or w if it writes on the value |
aggmfinalmodify | charNOT NULL | Like aggfinalmodify, but for the aggmfinalfn |
aggsortop | oidNOT NULL | Associated sort operator (zero if none) pg_operator.oid |
aggtranstype | oidNOT NULL | Data type of the aggregate function's internal transition (state) data pg_type.oid |
aggtransspace | int4NOT NULL | Approximate average size (in bytes) of the transition state data, or zero to use a default estimate |
aggmtranstype | oidNOT NULL | Data type of the aggregate function's internal transition (state) data for moving-aggregate mode (zero if none) pg_type.oid |
aggmtransspace | int4NOT NULL | Approximate average size (in bytes) of the transition state data for moving-aggregate mode, or zero to use a default estimate |
agginitval | text | The initial value of the transition state. This is a text field containing the initial value in its external string representation. If this field is null, the transition state value starts out null. |
aggminitval | text | The initial value of the transition state for moving-aggregate mode. This is a text field containing the initial value in its external string representation. If this field is null, the transition state value starts out null. |
Column history across versions
Version history 8
Definition snapshot: english-manuals:f515adc138e13420ec6c9c01205… · English manual source