select open change scope Open full search

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

Extensions / Functions and aggregates

first_last

Aggregate functions to return first or last "n" elements in a group

pgext.cloud · Documentation · Control file · PGXN

Overview

Packagefirst_last
Version0.1.1
RepositoryUnspecified
Extension typeStandard
Project statusActive
Requires CREATE EXTENSIONYes
Requires preloadNo
TrustedNo
RelocatableNo
Catalogue updated2026-07-30

Related extensions

See also

first_last_aggfirst() and last() aggregate functions
argmargmax, argmin, and anyold aggregate functions
medianMedian aggregate function for input sets
frkn_avgC aggregate extension providing my_avg for bigint and floating-point inputs.
trimmed_aggregatesC aggregate functions that discard configurable low/high outliers before computing averages, variances, and standard deviations.
pg_aggExperimental aggregate-query support extension; its install script currently creates the untrusted PL/Python language.
kissfftFast-Fourier transformer (fft)
binvecC helper for summing integer bit values into arrays