pgroonga

Use Groonga as index, fast full text search platform for all languages!

Overview

PackageVersionCategoryLicenseLanguage
pgroonga4.0.4FTSPostgreSQLC
IDExtensionBinLibLoadCreateTrustRelocSchema
2110pgroongaNoYesNoYesYesYes-
2111pgroonga_databaseNoYesNoYesYesYes-
Relatedpg_search pg_bigm zhparser pg_bestmatch pg_tokenizer pg_trgm rum vchord_bm25

require xxHash vendor repo to build

Version

TypeRepoVersionPG VerPackageDeps
EXTPIGSTY4.0.41817161514pgroonga-
RPMPIGSTY4.0.41817161514pgroonga_$vgroonga-libs
DEBPIGSTY4.0.41817161514postgresql-$v-pgroongalibgroonga0
OS / PGPG18PG17PG16PG15PG14
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
d12.aarch64
d13.x86_64
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
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
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;

Usage

  • https://pgroonga.github.io/
  • News: It lists release information.
  • Overview: It describes about PGroonga.
  • Install: It describes how to install PGroonga.
  • Upgrade: It describes how to upgrade PGroonga.
  • Uninstall: It describes how to uninstall PGroonga.
  • Tutorial: It describes how to use PGroonga step by step.
  • FAQ: Frequently asked questions.
  • How to: It describes about useful information for specific situations.
  • Reference: It describes details for each features such as options, functions and operators.
  • Troubleshooting: It describes how to fix troubles.
  • Community: It introduces about PGroonga community.
  • Users: It lists PGroonga users.
  • Development: It describes how to develop PGroonga.

Here’s a quick tutorial about how to use PGroonga:

CREATE EXTENSION IF NOT EXISTS pgroonga;

CREATE TABLE memos
(
    id      integer,
    content text
);

CREATE INDEX pgroonga_content_index ON memos USING pgroonga (content);

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 index.');
INSERT INTO memos VALUES (4, 'There is groonga command.');

SET enable_seqscan = off;

-- now let's query pgroonga

SELECT * FROM memos WHERE content &@ 'engine';
--  id |                                content                                 
-- ----+------------------------------------------------------------------------
--   2 | Groonga is a fast full text search engine that supports all languages.
-- (1 row)

SELECT * FROM memos WHERE content &@~ 'PGroonga OR PostgreSQL';
--  id |                            content                             
-- ----+----------------------------------------------------------------
--   3 | PGroonga is a PostgreSQL extension that uses Groonga as index.
--   1 | PostgreSQL is a relational database management system.
-- (2 rows)

SELECT * FROM memos WHERE content LIKE '%engine%';
--  id |                                content                                 
-- ----+------------------------------------------------------------------------
--   2 | Groonga is a fast full text search engine that supports all languages.
-- (1 row)

Last Modified 2026-03-12: add pg extension catalog (95749bf)