first_last_agg
first() and last() aggregate functions
Repository
wulczer/first_last_agg
https://github.com/wulczer/first_last_agg
Source
first_last_agg-0.1.4.tar.gz
first_last_agg-0.1.4.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
first_last_agg | 0.1.4 | FUNC | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4710 | first_last_agg | No | Yes | No | Yes | No | Yes | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | MIXED | 0.1.4 | 1817161514 | first_last_agg | - |
| RPM | PIGSTY | 0.1.4 | 1817161514 | first_last_agg_$v | - |
| DEB | PGDG | 0.1.4 | 1817161514 | postgresql-$v-first-last-agg | - |
Build
You can build the RPM packages for first_last_agg using pig build:
Install
You can install first_last_agg directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
first_last_agg: first and last aggregate functions for PostgreSQL
Provides first and last aggregate functions that return the first or last value in a group, operating on any element type.
Functions
| Function | Description |
|---|---|
first(anyelement) | Return the first value in the group |
last(anyelement) | Return the last value in the group |
Examples
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)