Skip to content

Commit fec982d

Browse files
committed
fix: pin pg_textsearch to main@ae1c221 to fix ResourceOwnerEnlarge crash
1 parent f7158b6 commit fec982d

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
ARG PG_VERSION=17
55
ARG PGVECTOR_VERSION=0.8.0
66
ARG POSTGIS_VERSION=3.5.1
7-
ARG PG_TEXTSEARCH_VERSION=0.6.0
7+
# Pin to main branch commit that includes the ResourceOwnerEnlarge crash fix (PR #248)
8+
# No tagged release includes this fix yet (latest release is v0.5.1)
9+
ARG PG_TEXTSEARCH_COMMIT=ae1c221
810

911
#############################################
1012
# Stage 1: Build extensions
@@ -13,7 +15,7 @@ FROM postgres:${PG_VERSION}-alpine AS builder
1315

1416
ARG PGVECTOR_VERSION
1517
ARG POSTGIS_VERSION
16-
ARG PG_TEXTSEARCH_VERSION
18+
ARG PG_TEXTSEARCH_COMMIT
1719

1820
RUN apk add --no-cache \
1921
git \
@@ -54,8 +56,11 @@ RUN curl -L https://download.osgeo.org/postgis/source/postgis-${POSTGIS_VERSION}
5456
make install
5557

5658
# pg_textsearch (BM25)
57-
RUN git clone --branch v${PG_TEXTSEARCH_VERSION} --depth 1 https://github.com/timescale/pg_textsearch.git && \
59+
# Build from main at a specific commit to include the ResourceOwnerEnlarge
60+
# crash fix (PR #248, issue #247). No tagged release includes this fix yet.
61+
RUN git clone https://github.com/timescale/pg_textsearch.git && \
5862
cd pg_textsearch && \
63+
git checkout ${PG_TEXTSEARCH_COMMIT} && \
5964
make -j$(nproc) && \
6065
make install
6166

0 commit comments

Comments
 (0)