pgfaceting
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pgfaceting | 0.2.0 | TYPE | BSD-3-Clause | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3640 | pgfaceting | No | No | No | Yes | No | No | faceting |
| Related | roaringbitmap pg_search pgroonga roaringbitmap rum hll bloom pg_tokenizer pg_textsearch pg_fts vchord_bm25 |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | MIXED | 0.2.0 | 1817161514 | pgfaceting | roaringbitmap |
| RPM | PIGSTY | 0.2.0 | 1817161514 | pgfaceting_$v | - |
| DEB | PGDG | 0.2.0 | 1817161514 | postgresql-$v-pgfaceting | - |
Build
You can build the RPM packages for pgfaceting using pig build:
Install
You can install pgfaceting directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
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.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)