Skip to content

Commit 3fc1d72

Browse files
committed
Add pg_extension_base to shared_preload_libraries
pg_extension_base (required by pg_lake) must be loaded at PostgreSQL startup via shared_preload_libraries. Add it to the postgresql.conf.sample configuration alongside timescaledb. According to pg_lake documentation, pg_extension_base acts as a loader that loads other pg_lake modules as needed, so only this extension needs to be preloaded. Without this, attempting to CREATE EXTENSION pg_extension_base fails with: ERROR: pg_extension_base can only be loaded via shared_preload_libraries This ensures pg_lake extensions can be installed without manual configuration changes.
1 parent 61c32ca commit 3fc1d72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ RUN for pg in ${PG_VERSIONS}; do \
299299
RUN for file in $(find /usr/share/postgresql -name 'postgresql.conf.sample'); do \
300300
# We want timescaledb to be loaded in this image by every created cluster
301301
sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" $file \
302+
# Add pg_extension_base for pg_lake support
303+
&& sed -r -i "s/(shared_preload_libraries\s*=\s*'[^']*)/\1,pg_extension_base/" $file \
302304
# We need to listen on all interfaces, otherwise PostgreSQL is not accessible
303305
&& echo "listen_addresses = '*'" >> $file; \
304306
done

0 commit comments

Comments
 (0)