topn

topn : type for top-n JSONB

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
4600
topn
topn
2.7.0
FUNC
AGPL-3.0
C
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--s-d--
No
Yes
No
Yes
no
no
Relationships
See Also
count_distinct
quantile
lower_quantile
first_last_agg
omnisketch
ddsketch
aggs_for_arrays
aggs_for_vecs

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXT
PGDG
2.7.0
18
17
16
15
14
13
topn-
RPM
PGDG
2.7.0
18
17
16
15
14
13
topn_$v*-
DEB
PIGSTY
2.7.0
18
17
16
15
14
13
postgresql-$v-topn-
Linux / PGPG18PG17PG16PG15PG14PG13
el8.x86_64
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
el8.aarch64
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
el9.x86_64
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
el9.aarch64
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
el10.x86_64
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
el10.aarch64
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
PGDG 2.7.0
d12.x86_64
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
d12.aarch64
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
d13.x86_64
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
d13.aarch64
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
u22.x86_64
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
u22.aarch64
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
u24.x86_64
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
u24.aarch64
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PIGSTY 2.7.0
PackageVersionOSORGSIZEFile URL
topn_162.7.0el8.x86_64pgdg24.0 KiBtopn_16-2.7.0-1PGDG.rhel8.x86_64.rpm
topn_162.6.0el8.x86_64pgdg23.7 KiBtopn_16-2.6.0-1PGDG.rhel8.x86_64.rpm
topn_162.7.0el8.aarch64pgdg23.8 KiBtopn_16-2.7.0-1PGDG.rhel8.aarch64.rpm
topn_162.6.0el8.aarch64pgdg23.5 KiBtopn_16-2.6.0-1PGDG.rhel8.aarch64.rpm
topn_162.7.0el9.x86_64pgdg23.4 KiBtopn_16-2.7.0-1PGDG.rhel9.x86_64.rpm
topn_162.6.0el9.x86_64pgdg23.1 KiBtopn_16-2.6.0-1PGDG.rhel9.x86_64.rpm
topn_162.7.0el9.aarch64pgdg23.2 KiBtopn_16-2.7.0-1PGDG.rhel9.aarch64.rpm
topn_162.6.0el9.aarch64pgdg22.7 KiBtopn_16-2.6.0-1PGDG.rhel9.aarch64.rpm
topn_162.7.0el10.x86_64pgdg24.1 KiBtopn_16-2.7.0-2PGDG.rhel10.x86_64.rpm
topn_162.7.0el10.aarch64pgdg23.7 KiBtopn_16-2.7.0-2PGDG.rhel10.aarch64.rpm
postgresql-16-topn2.7.0d12.x86_64pigsty28.4 KiBpostgresql-16-topn_2.7.0-1PIGSTY~bookworm_amd64.deb
postgresql-16-topn2.7.0d12.aarch64pigsty28.2 KiBpostgresql-16-topn_2.7.0-1PIGSTY~bookworm_arm64.deb
postgresql-16-topn2.7.0d13.x86_64pigsty28.5 KiBpostgresql-16-topn_2.7.0-1PIGSTY~trixie_amd64.deb
postgresql-16-topn2.7.0d13.aarch64pigsty28.1 KiBpostgresql-16-topn_2.7.0-1PIGSTY~trixie_arm64.deb
postgresql-16-topn2.7.0u22.x86_64pigsty32.8 KiBpostgresql-16-topn_2.7.0-1PIGSTY~jammy_amd64.deb
postgresql-16-topn2.7.0u22.aarch64pigsty32.6 KiBpostgresql-16-topn_2.7.0-1PIGSTY~jammy_arm64.deb
postgresql-16-topn2.7.0u24.x86_64pigsty29.1 KiBpostgresql-16-topn_2.7.0-1PIGSTY~noble_amd64.deb
postgresql-16-topn2.7.0u24.aarch64pigsty28.9 KiBpostgresql-16-topn_2.7.0-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
topn_152.7.0el8.x86_64pgdg24.0 KiBtopn_15-2.7.0-1PGDG.rhel8.x86_64.rpm
topn_152.4.0el8.x86_64pgdg24.1 KiBtopn_15-2.4.0-2.rhel8.x86_64.rpm
topn_152.7.0el8.aarch64pgdg23.8 KiBtopn_15-2.7.0-1PGDG.rhel8.aarch64.rpm
topn_152.4.0el8.aarch64pgdg23.9 KiBtopn_15-2.4.0-2.rhel8.aarch64.rpm
topn_152.7.0el9.x86_64pgdg23.4 KiBtopn_15-2.7.0-1PGDG.rhel9.x86_64.rpm
topn_152.4.0el9.x86_64pgdg24.0 KiBtopn_15-2.4.0-2.rhel9.x86_64.rpm
topn_152.7.0el9.aarch64pgdg23.0 KiBtopn_15-2.7.0-1PGDG.rhel9.aarch64.rpm
topn_152.4.0el9.aarch64pgdg23.5 KiBtopn_15-2.4.0-2.rhel9.aarch64.rpm
topn_152.7.0el10.x86_64pgdg24.3 KiBtopn_15-2.7.0-2PGDG.rhel10.x86_64.rpm
topn_152.7.0el10.aarch64pgdg23.7 KiBtopn_15-2.7.0-2PGDG.rhel10.aarch64.rpm
postgresql-15-topn2.7.0d12.x86_64pigsty28.3 KiBpostgresql-15-topn_2.7.0-1PIGSTY~bookworm_amd64.deb
postgresql-15-topn2.7.0d12.aarch64pigsty28.1 KiBpostgresql-15-topn_2.7.0-1PIGSTY~bookworm_arm64.deb
postgresql-15-topn2.7.0d13.x86_64pigsty28.5 KiBpostgresql-15-topn_2.7.0-1PIGSTY~trixie_amd64.deb
postgresql-15-topn2.7.0d13.aarch64pigsty28.1 KiBpostgresql-15-topn_2.7.0-1PIGSTY~trixie_arm64.deb
postgresql-15-topn2.7.0u22.x86_64pigsty32.8 KiBpostgresql-15-topn_2.7.0-1PIGSTY~jammy_amd64.deb
postgresql-15-topn2.7.0u22.aarch64pigsty32.6 KiBpostgresql-15-topn_2.7.0-1PIGSTY~jammy_arm64.deb
postgresql-15-topn2.7.0u24.x86_64pigsty29.1 KiBpostgresql-15-topn_2.7.0-1PIGSTY~noble_amd64.deb
postgresql-15-topn2.7.0u24.aarch64pigsty28.8 KiBpostgresql-15-topn_2.7.0-1PIGSTY~noble_arm64.deb

Source

pig build pkg topn;		# build spec not ready

Install

Make sure PGDG repo available:

pig repo add pgdg -u    # add pgdg repo and update cache

Install this extension with pig:

pig install topn;		# install via package name, for the active PG version

pig install topn -v 18;   # install for PG 18
pig install topn -v 17;   # install for PG 17
pig install topn -v 16;   # install for PG 16
pig install topn -v 15;   # install for PG 15
pig install topn -v 14;   # install for PG 14
pig install topn -v 13;   # install for PG 13

Create this extension with:

CREATE EXTENSION topn;
Last updated on