Skip to content

Commit fd953b4

Browse files
committed
fix shared lib
1 parent daa8e74 commit fd953b4

File tree

1 file changed

+5
-0
lines changed
  • root/etc/services.d/postgresql

1 file changed

+5
-0
lines changed

root/etc/services.d/postgresql/run

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ if [ ! -f "$PGDATA/PG_VERSION" ]; then
2424
# Listen on all interfaces
2525
echo "listen_addresses = '*'" >> "$PGDATA/postgresql.conf"
2626

27+
# Add shared_preload_libraries if specified (required for extensions like vchord)
28+
if [ -n "$POSTGRES_SHARED_PRELOAD_LIBRARIES" ]; then
29+
echo "shared_preload_libraries = '$POSTGRES_SHARED_PRELOAD_LIBRARIES'" >> "$PGDATA/postgresql.conf"
30+
fi
31+
2732
# Start temporarily to create user/database and run init scripts
2833
/usr/local/bin/s6-setuidgid bsd /usr/local/bin/pg_ctl -D "$PGDATA" -w start
2934

0 commit comments

Comments
 (0)