#[pg_aggregate]
Declare a pgrx::Aggregate implementation on a type as able to used by Postgres as an aggregate.
pgrx::Aggregate
Functions inside the impl may use the #[pgrx] attribute.
impl
#[pgrx]