From fec982db23c09cb74124a390cdbf8345cd485785 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Fri, 6 Mar 2026 01:48:16 +0000 Subject: [PATCH 1/3] fix: pin pg_textsearch to main@ae1c221 to fix ResourceOwnerEnlarge crash --- Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b529275..3b92f45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,9 @@ ARG PG_VERSION=17 ARG PGVECTOR_VERSION=0.8.0 ARG POSTGIS_VERSION=3.5.1 -ARG PG_TEXTSEARCH_VERSION=0.6.0 +# Pin to main branch commit that includes the ResourceOwnerEnlarge crash fix (PR #248) +# No tagged release includes this fix yet (latest release is v0.5.1) +ARG PG_TEXTSEARCH_COMMIT=ae1c221 ############################################# # Stage 1: Build extensions @@ -13,7 +15,7 @@ FROM postgres:${PG_VERSION}-alpine AS builder ARG PGVECTOR_VERSION ARG POSTGIS_VERSION -ARG PG_TEXTSEARCH_VERSION +ARG PG_TEXTSEARCH_COMMIT RUN apk add --no-cache \ git \ @@ -54,8 +56,11 @@ RUN curl -L https://download.osgeo.org/postgis/source/postgis-${POSTGIS_VERSION} make install # pg_textsearch (BM25) -RUN git clone --branch v${PG_TEXTSEARCH_VERSION} --depth 1 https://github.com/timescale/pg_textsearch.git && \ +# Build from main at a specific commit to include the ResourceOwnerEnlarge +# crash fix (PR #248, issue #247). No tagged release includes this fix yet. +RUN git clone https://github.com/timescale/pg_textsearch.git && \ cd pg_textsearch && \ + git checkout ${PG_TEXTSEARCH_COMMIT} && \ make -j$(nproc) && \ make install From 4648ac451d0a16adef6e0fbab053d111902d855b Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Fri, 6 Mar 2026 01:52:47 +0000 Subject: [PATCH 2/3] fix: use correct full commit hash for pg_textsearch PR #248 fix --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3b92f45..bb29e3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ARG PGVECTOR_VERSION=0.8.0 ARG POSTGIS_VERSION=3.5.1 # Pin to main branch commit that includes the ResourceOwnerEnlarge crash fix (PR #248) # No tagged release includes this fix yet (latest release is v0.5.1) -ARG PG_TEXTSEARCH_COMMIT=ae1c221 +ARG PG_TEXTSEARCH_COMMIT=ad4f8328780367526fce8997207fa701ef4d014d ############################################# # Stage 1: Build extensions From c24ec3b22c9ca6fedda90f0f15430e4df36f9ed7 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Fri, 6 Mar 2026 11:13:26 +0000 Subject: [PATCH 3/3] fix: remove stale pgsodium reference from Makefile test target --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 2d36ed8..2b399f4 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,6 @@ test: build CREATE EXTENSION vector; \ CREATE EXTENSION postgis; \ CREATE EXTENSION pg_textsearch; \ - CREATE EXTENSION pgsodium; \ SELECT 'all extensions OK';" @docker stop $(CONTAINER_NAME)-test > /dev/null @docker rm $(CONTAINER_NAME)-test > /dev/null