pgfaceting
fast faceting queries using an inverted index
pgfaceting : fast faceting queries using an inverted index
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 3640 | pgfaceting | pgfaceting | 0.2.0 |
TYPE | BSD-3-Clause | SQL |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| ----d-- | No | No | No | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | faceting |
| Requires | roaringbitmap |
| See Also | pg_search pgroonga roaringbitmap rum hll bloom pg_tokenizer pg_textsearch pg_fts vchord_bm25 |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED | 0.2.0 |
18 17 16 15 14 | pgfaceting |
roaringbitmap |
| RPM | PIGSTY | 0.2.0 |
18 17 16 15 14 | pgfaceting_$v |
- |
| DEB | PGDG | 0.2.0 |
18 17 16 15 14 | postgresql-$v-pgfaceting |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 0.2.0 | PIGSTY 0.2.0 | PIGSTY 0.2.0 | PIGSTY 0.2.0 | PIGSTY 0.2.0 |
| el8.aarch64 | PIGSTY 0.2.0 | PIGSTY 0.2.0 | PIGSTY 0.2.0 | PIGSTY 0.2.0 | PIGSTY 0.2.0 |
| el9.x86_64 | PIGSTY 0.2.0 | PIGSTY 0.2.0 | PIGSTY 0.2.0 | PIGSTY 0.2.0 | PIGSTY 0.2.0 |
| el9.aarch64 | PIGSTY 0.2.0 | PIGSTY 0.2.0 | PIGSTY 0.2.0 | PIGSTY 0.2.0 | PIGSTY 0.2.0 |
| el10.x86_64 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 |
| el10.aarch64 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 |
| d12.x86_64 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 |
| d12.aarch64 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 |
| d13.x86_64 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 |
| d13.aarch64 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 |
| u22.x86_64 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 |
| u22.aarch64 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 |
| u24.x86_64 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 |
| u24.aarch64 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 |
| u26.x86_64 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 |
| u26.aarch64 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 | PGDG 0.2.0 |
Source
github.com/cybertec-postgresql/pgfaceting
pgfaceting-0.2.0.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
pgfaceting: fast faceted search using inverted indexes with roaring bitmaps
The pgfaceting extension enables rapid facet counting via inverted indexes built with roaring bitmaps. Requires the pg_roaringbitmap extension.
Facet Types
plain_facet(column): Use column values directly as facetsdatetrunc_facet(column, precision): Apply date truncation (e.g., monthly/yearly buckets)bucket_facet(column, buckets): Assign continuous variables to predefined ranges
Key Functions
Architecture
The extension maintains two auxiliary tables per indexed table: a main facets table with roaring bitmaps mapping facet values to row IDs, and a delta table for incremental changes between maintenance runs.
Currently supports only 32-bit integer ID columns.