Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PostgreSQL extension providing first and last aggregate functions.
C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc
sql
src
test
.gitignore
META.json
Makefile
README.md
first_last_agg.control

README.md

first_last_agg

A simple extension providing two aggregate functions, last and first aggregate functions, operating on any element type and returning the last or the first value of the group.

Since by default the ordering inside groups created by a GROUP BY expression is not defined, it is advisable to use an ORDER BY clause inside the aggregate expression (see the aggregate function syntax). This feature has been added in PostgreSQL 9.0.

This extension is intended to replace the corresponding first and last aggregates from the PostgreSQL wiki.

Something went wrong with that request. Please try again.