Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added duckdb_fdw to trunk #453

Merged
merged 6 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/extensions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- dind
- large-8x8
container:
image: quay.io/tembo/trunk-test-tembo:0.0.25
image: quay.io/tembo/trunk-test-tembo:0.0.26
options: --user root
needs:
- find_directories
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trunk-install-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- dind
- large-8x8
container:
image: quay.io/tembo/trunk-test-tembo:0.0.25
image: quay.io/tembo/trunk-test-tembo:0.0.26
options: --user root
env:
PGHOST: "localhost"
Expand Down
12 changes: 12 additions & 0 deletions contrib/duckdb_fdw/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ARG PG_VERSION=15
FROM quay.io/coredb/c-builder:pg${PG_VERSION}
USER root

RUN git clone https://github.com/alitrack/duckdb_fdw
RUN cd duckdb_fdw && \
wget -c https://github.com/duckdb/duckdb/releases/download/v0.8.1/libduckdb-linux-amd64.zip && \
unzip -d . libduckdb-linux-amd64.zip && \
cp libduckdb.so $(pg_config --libdir)
ianstanton marked this conversation as resolved.
Show resolved Hide resolved

RUN cd duckdb_fdw && make USE_PGXS=1

21 changes: 21 additions & 0 deletions contrib/duckdb_fdw/Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[extension]
name = "duckdb_fdw"
version = "0.0.1"
repository = "https://github.com/alitrack/duckdb_fdw"
license = "MIT"
description = "This PostgreSQL extension implements a Foreign Data Wrapper (FDW) for DuckDB."
homepage = "http://alitrack.com/"
documentation = "https://github.com/alitrack/duckdb_fdw"
categories = ['connectors']

[dependencies]
nix = ["duckdb"]
ianstanton marked this conversation as resolved.
Show resolved Hide resolved

[build]
postgres_version = "15"
platform = "linux/amd64"
dockerfile = "Dockerfile"
install_command = """
cd duckdb_fdw && make install USE_PGXS=1
echo "done"
"""
6 changes: 6 additions & 0 deletions images/trunk-test-tembo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ RUN wget http://www.xunsearch.com/scws/down/scws-1.2.3.tar.bz2 && \
rm -rf scws-1.2.3.tar.bz2 scws-1.2.3 && \
ln -s /usr/local/lib/libscws.so /usr/lib/x86_64-linux-gnu/libscws.so

# Install duckdb libs
RUN wget https://github.com/duckdb/duckdb/releases/download/v0.8.1/libduckdb-linux-amd64.zip && \
unzip libduckdb-linux-amd64.zip && \
cp libduckdb.so /usr/lib/x86_64-linux-gnu/ && \
rm -rf libduckdb-linux-amd64.zip libduckdb.so


RUN chown -R postgres:postgres $PGDATA && \
chmod -R 0700 $PGDATA
Expand Down