From ff747da42f17c2a3e279315883fd58d3a7b9ae93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TATSUNO=20=E2=80=9CTaz=E2=80=9D=20Yasuhiro?= Date: Sun, 2 Aug 2026 09:56:18 +0000 Subject: [PATCH] backend: pg_bigm implementation Add pg_bigm as a submodule under pglite/other_extensions and build it alongside the other third-party extensions. pg_bigm provides full text search based on 2-grams, which indexes CJK text effectively where the 3-gram based pg_trgm cannot. Unlike every other extension here, pg_bigm's Makefile only includes PGXS when USE_PGXS is set, and otherwise assumes it lives in the postgres tree as contrib/pg_bigm. That path resolves contrib-global.mk to a location that does not exist from other_extensions, so set the flag for its build and packaging targets. --- .gitmodules | 3 +++ pglite/other_extensions/Makefile | 9 ++++++++- pglite/other_extensions/pg_bigm | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 160000 pglite/other_extensions/pg_bigm diff --git a/.gitmodules b/.gitmodules index 7510d1a707b74..f6ffb4fc35c4a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -29,3 +29,6 @@ [submodule "pglite/other_extensions/pgmq"] path = pglite/other_extensions/pgmq url = https://github.com/pgmq/pgmq +[submodule "pglite/other_extensions/pg_bigm"] + path = pglite/other_extensions/pg_bigm + url = https://github.com/pgbigm/pg_bigm.git diff --git a/pglite/other_extensions/Makefile b/pglite/other_extensions/Makefile index 601f0ffb12545..d756fe86d3bcf 100644 --- a/pglite/other_extensions/Makefile +++ b/pglite/other_extensions/Makefile @@ -9,7 +9,14 @@ SUBDIRS = \ pg_uuidv7 \ pg_hashids \ pg_textsearch \ - pgmq/pgmq-extension + pgmq/pgmq-extension \ + pg_bigm + +# Every other extension here includes PGXS unconditionally. pg_bigm gates it +# behind USE_PGXS and otherwise assumes it sits in the postgres tree as +# contrib/pg_bigm, which resolves contrib-global.mk to a path that does not +# exist from here. Set the flag for its build and its packaging step only. +all-pg_bigm-recurse pg_bigm.tar.gz: export USE_PGXS = 1 prefix ?= /pglite EXTENSIONS_BUILD_ROOT := /tmp/extensions/build diff --git a/pglite/other_extensions/pg_bigm b/pglite/other_extensions/pg_bigm new file mode 160000 index 0000000000000..16034b29a13a6 --- /dev/null +++ b/pglite/other_extensions/pg_bigm @@ -0,0 +1 @@ +Subproject commit 16034b29a13a6ef0241731b153e1b8db36779961