Postgresql 将plpython3扩展添加到Postgres/timescaledb Alpine Docker映像会导致pg_vsnprintf:未找到符号
如中所述,我尝试将plpython3扩展添加到我的timescaledb/postgres(基于linux alpine)映像中 不幸的是,被接受的答案似乎不再有效 我用以下代码更新了dockerfile,但没有任何运气:Postgresql 将plpython3扩展添加到Postgres/timescaledb Alpine Docker映像会导致pg_vsnprintf:未找到符号,postgresql,docker,timescaledb,postgres-plpython,Postgresql,Docker,Timescaledb,Postgres Plpython,如中所述,我尝试将plpython3扩展添加到我的timescaledb/postgres(基于linux alpine)映像中 不幸的是,被接受的答案似乎不再有效 我用以下代码更新了dockerfile,但没有任何运气: RUN apk update \ && apk add --no-cache --virtual .build-deps build-base gcc postgresql-plpython3 \ && ln -s /usr/lib/postg
RUN apk update \
&& apk add --no-cache --virtual .build-deps build-base gcc postgresql-plpython3 \
&& ln -s /usr/lib/postgresql/plpython3.so /usr/local/lib/postgresql/plpython3.so \
&& ln -s /usr/share/postgresql/extension/plpython3u.control /usr/local/share/postgresql/extension/plpython3u.control \
&& ln -s /usr/share/postgresql/extension/plpython3u--1.0.sql /usr/local/share/postgresql/extension/plpython3u--1.0.sql \
&& ln -s /usr/share/postgresql/extension/plpython3u--unpackaged--1.0.sql /usr/local/share/postgresql/extension/plpython3u--unpackaged--1.0.sql
当我运行命令createextensionplpython3u代码>
我得到以下错误:
Error in query (7): ERROR: could not load library "/usr/local/lib/postgresql/plpython3.so": Error relocating /usr/local/lib/postgresql/plpython3.so: pg_vsnprintf: symbol not found
你知道我该如何解决这个问题吗
以下是用于测试目的的完整dockerfile:
FROM timescale/timescaledb:1.7.5-pg11
# Monitoring tools
RUN apk update \
&& apk add --no-cache --virtual .build-deps build-base gcc postgresql-plpython3 \
&& ln -s /usr/lib/postgresql/plpython3.so /usr/local/lib/postgresql/plpython3.so \
&& ln -s /usr/share/postgresql/extension/plpython3u.control /usr/local/share/postgresql/extension/plpython3u.control \
&& ln -s /usr/share/postgresql/extension/plpython3u--1.0.sql /usr/local/share/postgresql/extension/plpython3u--1.0.sql \
&& ln -s /usr/share/postgresql/extension/plpython3u--unpackaged--1.0.sql /usr/local/share/postgresql/extension/plpython3u--unpackaged--1.0.sql
CMD ["postgres"]
谢谢你的帮助