Closed nestarz closed 3 years ago
After make install, the extension files are not placed into the right directory, nothing seems to happen in fact, I need to manually copy them, but still where is the duckdb_fdw I need to copy to $libdir ?
Made it work by only copying the required files:
FROM postgres
RUN apt-get update && apt-get install -y \
git \
build-essential \
cmake
RUN git clone https://github.com/cwida/duckdb.git \
&& cd duckdb \
&& make
RUN apt-get install -y postgresql-server-dev-13 postgresql-client-13
RUN git clone https://github.com/alitrack/duckdb_fdw.git \
&& cd duckdb_fdw \
&& cp /duckdb/build/release/tools/sqlite3_api_wrapper/libsqlite3_api_wrapper.so $(pg_config --libdir) \
&& cp /duckdb/tools/sqlite3_api_wrapper/include/sqlite3.h . \
&& make USE_PGXS=1 \
&& make install USE_PGXS=1 \
&& cd .. && rm -rf duckdb_fdw duckdb
ENV POSTGRES_HOST_AUTH_METHOD='trust'
Hello,
I am trying to install the extension using this Dockerfile:
db.sql
But then I have this error when I run PostgreSQL:
May I know how can I install the extension properly ? Thanks !