Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,14 @@ RUN for file in $(find /usr/share/postgresql -name 'postgresql.conf.sample'); do
&& echo "listen_addresses = '*'" >> $file; \
done

# pg_textsearch requires shared_preload_libraries (pg17+ only)
RUN for file in $(find /usr/share/postgresql -name 'postgresql.conf.sample'); do \
pgver="$(basename "$(dirname "$file")")"; \
if [ "$pgver" -ge 17 ] 2>/dev/null; then \
sed -r -i "s/(shared_preload_libraries\s*=\s*'[^']*)/\1,pg_textsearch/" "$file"; \
fi; \
done

RUN chown -R postgres:postgres /usr/local/cargo

# required to install dbgsym packages
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ PGVECTO_RS?=0.4.0
VECTORCHORD?=0.5.3
TIMESCALEDB_VERSIONS?=all
TOOLKIT_VERSIONS?=all
PG_TEXTSEARCH_VERSION?=v0.5.1
PG_TEXTSEARCH_VERSION?=v0.6.0
PGBOUNCER_EXPORTER_VERSION?=0.9.0
PGBACKREST_EXPORTER_VERSION?=0.18.0

Expand Down
3 changes: 3 additions & 0 deletions cicd/smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ echo
initdb

SHARED_PRELOAD_LIBRARIES="timescaledb"
if [ "${PG_MAJOR}" -ge 17 ] 2>/dev/null; then
SHARED_PRELOAD_LIBRARIES="${SHARED_PRELOAD_LIBRARIES},pg_textsearch"
fi
EXTENSION_DIR="$(pg_config --sharedir)/extension"

echo "shared_preload_libraries='${SHARED_PRELOAD_LIBRARIES}'" >>"${PGDATA}/postgresql.conf"
Expand Down
3 changes: 2 additions & 1 deletion scripts/configure_spilo.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
'pg_cron': (9.5, 11, True, False),
'pg_stat_kcache': (9.4, 11, True, False),
'pg_partman': (9.4, 11, False, True),
'set_user': (9.4, 11, True, False)
'set_user': (9.4, 11, True, False),
'pg_textsearch': (17, 99, True, True)
}

AUTO_ENABLE_WALG_RESTORE = ('WAL_S3_BUCKET', 'WALE_S3_PREFIX', 'WALG_S3_PREFIX')
Expand Down