pgroonga_database
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pgroonga | 4.0.4 | FTS | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 2110 | pgroonga | No | Yes | No | Yes | Yes | Yes | - |
| 2111 | pgroonga_database | No | Yes | No | Yes | Yes | Yes | - |
| Related | pg_search zhparser pg_bigm pg_tokenizer pg_trgm fuzzystrmatch rum unaccent |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 4.0.4 | 1817161514 | pgroonga | - |
| RPM | PIGSTY | 4.0.4 | 1817161514 | pgroonga_$v | groonga-libs |
| DEB | PIGSTY | 4.0.4 | 1817161514 | postgresql-$v-pgroonga | libgroonga0 |
| OS / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| el8.aarch64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| el9.x86_64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| el9.aarch64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| el10.x86_64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| el10.aarch64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| d12.x86_64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| d12.aarch64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| d13.x86_64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| d13.aarch64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| u22.x86_64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| u22.aarch64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| u24.x86_64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
| u24.aarch64 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 | PIGSTY 4.0.4 |
Build
You can build the RPM / DEB packages for pgroonga using pig build:
pig build pkg pgroonga # build RPM / DEB packages
Install
You can install pgroonga directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
pig repo add pgsql -u # Add repo and update cache
Install the extension using pig or apt/yum/dnf:
pig install pgroonga; # Install for current active PG version
pig ext install -y pgroonga -v 18 # PG 18
pig ext install -y pgroonga -v 17 # PG 17
pig ext install -y pgroonga -v 16 # PG 16
pig ext install -y pgroonga -v 15 # PG 15
pig ext install -y pgroonga -v 14 # PG 14
dnf install -y pgroonga_18 # PG 18
dnf install -y pgroonga_17 # PG 17
dnf install -y pgroonga_16 # PG 16
dnf install -y pgroonga_15 # PG 15
dnf install -y pgroonga_14 # PG 14
apt install -y postgresql-18-pgroonga # PG 18
apt install -y postgresql-17-pgroonga # PG 17
apt install -y postgresql-16-pgroonga # PG 16
apt install -y postgresql-15-pgroonga # PG 15
apt install -y postgresql-14-pgroonga # PG 14
Create Extension:
CREATE EXTENSION pgroonga_database;
Usage
pgroonga_database is a sub-extension of the PGroonga project. It provides database management functionality for PGroonga, which makes PostgreSQL a fast full text search platform for all languages.
PGroonga is a comprehensive full text search solution that uses Groonga as a backend. It supports all languages including CJK (Chinese, Japanese, Korean) out of the box, and provides rich features such as:
- Fast full text search with all language support
- Rich query syntax (query language, script syntax)
- JSON search
- HTML/XML tag aware highlighting
- Similar search
- Synonym expansion
- Autocomplete
- Query log analysis
The PGroonga documentation is extensive and spans hundreds of pages. For detailed usage, API reference, operators, functions, and tuning guides, please refer to the official documentation site:
Quick Start
CREATE EXTENSION pgroonga_database;
CREATE EXTENSION pgroonga;
-- Create a table with text content
CREATE TABLE memos (
id integer,
content text
);
-- Create a PGroonga index
CREATE INDEX pgroonga_content_index ON memos USING pgroonga (content);
-- Insert data
INSERT INTO memos VALUES (1, 'PostgreSQL is a relational database management system.');
INSERT INTO memos VALUES (2, 'Groonga is a fast full text search engine that supports all languages.');
INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Groonga as its backend.');
-- Full text search
SELECT * FROM memos WHERE content &@~ 'PostgreSQL OR Groonga';
Feedback
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.