pub struct Aggregate {Show 22 fields
pub function: u32,
pub kind: u8,
pub ndirect: i16,
pub transfn: u32,
pub finalfn: u32,
pub combinefn: u32,
pub serialfn: u32,
pub deserialfn: u32,
pub mtransfn: u32,
pub minvtransfn: u32,
pub mfinalfn: u32,
pub finalextra: bool,
pub mfinalextra: bool,
pub finalmodify: u8,
pub mfinalmodify: u8,
pub sortop: u32,
pub transtype: u32,
pub transspace: i32,
pub mtranstype: u32,
pub mtransspace: i32,
pub initval: Option<String>,
pub minitval: Option<String>,
}Expand description
An aggregate function, one row of pg_aggregate.
Fields§
§function: u32aggfnoid: the OID of the function in pg_proc. Catalog::create_aggregate sets it.
kind: u8aggkind: n for a normal aggregate, o for an ordered-set aggregate or h for a hypothetical-set aggregate.
ndirect: i16aggnumdirectargs: the number of direct arguments of an ordered-set aggregate.
transfn: u32aggtransfn: the transition function.
finalfn: u32aggfinalfn: the final function, or 0.
combinefn: u32aggcombinefn: the combine function, or 0.
serialfn: u32aggserialfn: the serialization function, or 0.
deserialfn: u32aggdeserialfn: the deserialization function, or 0.
mtransfn: u32aggmtransfn: the forward transition function of the moving-aggregate mode, or 0.
minvtransfn: u32aggminvtransfn: the inverse transition function of the moving-aggregate mode, or 0.
mfinalfn: u32aggmfinalfn: the final function of the moving-aggregate mode, or 0.
finalextra: boolaggfinalextra: the final function gets a null for each argument of the aggregate after the state.
mfinalextra: boolaggmfinalextra: the same for the final function of the moving-aggregate mode.
finalmodify: u8aggfinalmodify: r read-only, s shareable or w read-write.
mfinalmodify: u8aggmfinalmodify: the same for the final function of the moving-aggregate mode.
sortop: u32aggsortop: the sort operator, or 0.
transtype: u32aggtranstype: the type of the state.
transspace: i32aggtransspace: the estimate of the size of the state, or 0.
mtranstype: u32aggmtranstype: the type of the state of the moving-aggregate mode, or 0.
mtransspace: i32aggmtransspace: the estimate of the size of that state, or 0.
initval: Option<String>agginitval: the text of the first state, or None for null.
minitval: Option<String>aggminitval: the text of the first state of the moving-aggregate mode, or None for null.