first_last_agg
first() and last() aggregate functions
first_last_agg · first() and last() aggregate functions
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 4720 | first_last_agg | first_last_agg | 0.1.4 | FUNC | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-r | No | Yes | No | Yes | yes | no |
| Relationships | |
|---|---|
| See Also | tablefunc extra_window_functions pg_duckdb argm pg_lake duckdb_fdw |
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 |
| el8.aarch64 | N/A | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 |
| el9.x86_64 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 |
| el9.aarch64 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 |
| el10.x86_64 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 |
| el10.aarch64 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 | PIGSTY 0.1.4 |
| d12.x86_64 | PIGSTY 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 |
| d12.aarch64 | PIGSTY 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 |
| d13.x86_64 | PIGSTY 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 |
| d13.aarch64 | PIGSTY 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 |
| u22.x86_64 | PIGSTY 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 |
| u22.aarch64 | PIGSTY 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 |
| u24.x86_64 | PIGSTY 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 |
| u24.aarch64 | PIGSTY 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 |
| u26.x86_64 | PIGSTY 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 |
| u26.aarch64 | PIGSTY 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 | PGDG 0.1.4 |
Source
github.com/wulczer/first_last_agg
first_last_agg-0.1.4.tar.gz
first-last-agg_0.1.4-4-gd63ea3b.orig.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
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 |