Skip to content

Commit 13db6a5

Browse files
fix(docker): keep libmariadb-dev-compat so mysql_fdw can load at runtime
mysql_fdw dlopen()s libmysqlclient.so at runtime; that file is provided by libmariadb-dev-compat, which the previous build purged — causing 'CREATE EXTENSION mysql_fdw' to fail (and tds_fdw to be skipped) on first init. Keep the compat package (+ libmariadb3) and only drop the heavy build toolchain. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 04f3403 commit 13db6a5

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ RUN set -eux; \
5656
make USE_PGXS=1 install; \
5757
cd /; \
5858
rm -rf /tmp/mysql_fdw; \
59-
# keep the runtime MariaDB client lib that mysql_fdw.so links against
60-
apt-mark manual libmariadb3; \
59+
# mysql_fdw dlopen()s "libmysqlclient.so" at RUNTIME. With the MariaDB
60+
# connector that unversioned .so is provided by libmariadb-dev-compat, so we
61+
# KEEP it (and the runtime lib libmariadb3). We only drop the heavy build
62+
# toolchain. Removing the compat package breaks `CREATE EXTENSION mysql_fdw`.
63+
apt-mark manual libmariadb3 libmariadb-dev-compat; \
6164
apt-get purge -y --auto-remove \
6265
build-essential \
6366
git \
6467
postgresql-server-dev-${PG_MAJOR} \
65-
libmariadb-dev \
66-
libmariadb-dev-compat \
6768
; \
6869
rm -rf /var/lib/apt/lists/*
6970

0 commit comments

Comments
 (0)