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

Always download DuckDB DSO #909

Merged
merged 1 commit into from
Jan 24, 2025
Merged

Always download DuckDB DSO #909

merged 1 commit into from
Jan 24, 2025

Conversation

theory
Copy link
Collaborator

@theory theory commented Jan 22, 2025

Rather than letting the Git repo build it from a submodule. Otherwise the pg_duckdb builder installs it into the Postgres lib directory, which isn't included in ld's path, so Postgres can't find it. Update to trunk-test-tembo:4436f19, which includes the supported version of libduckdb.so.

Also configure it to be added to shared_preload_libraries and needing to restart.

Copy the same libduckdb.so to build duckdb_fdw, too, and explicitly set its version, since it may diverge from duckdb_fdw's own version. The build is successful, but duckdb_fdw does not load with the libduckdb.so built by pg_duckdb, so skip testing it for now. Will fix once duckdb/pg_duckdb#554 or its successor resolves thing such that both extensions can use the same DSO.

@theory theory self-assigned this Jan 22, 2025
@theory theory changed the title Always download DuckDB DSO (#909) Always download DuckDB DSO Jan 22, 2025
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-909.d2qgksbj4k37j8.amplifyapp.com

theory added a commit that referenced this pull request Jan 23, 2025
Rather than letting the Git repo build it from a submodule. Otherwise
the pg_duckdb builder installs it into the Postgres lib directory, which
isn't included in `ld`'s path, so Postgres can't find it. Update to
`trunk-test-tembo:4436f19`, which includes the supported version of
`libduckdb.so`.

Also configure it to be added to `shared_preload_libraries` and needing
to restart.

While at it, use an explicit version when building duckdb_fdw.
@theory theory force-pushed the use-duckdb-release-so branch from e70e2bd to 224a0f2 Compare January 23, 2025 21:22
theory added a commit that referenced this pull request Jan 23, 2025
Rather than letting the Git repo build it from a submodule. Otherwise
the pg_duckdb builder installs it into the Postgres lib directory, which
isn't included in `ld`'s path, so Postgres can't find it. Update to
`trunk-test-tembo:4436f19`, which includes the supported version of
`libduckdb.so`.

Also configure it to be added to `shared_preload_libraries` and needing
to restart.

While at it, use an explicit version when building duckdb_fdw.
@theory theory force-pushed the use-duckdb-release-so branch from 224a0f2 to 628c176 Compare January 23, 2025 23:14
theory added a commit that referenced this pull request Jan 23, 2025
Rather than letting the Git repo build it from a submodule. Otherwise
the pg_duckdb builder installs it into the Postgres lib directory, which
isn't included in `ld`'s path, so Postgres can't find it. Update to
`trunk-test-tembo:4436f19`, which includes the supported version of
`libduckdb.so`.

Also configure it to be added to `shared_preload_libraries` and needing
to restart.

Copy the same `libduckdb.so` to build `duckdb_fdw`, too, and
explicitly set its version, since it may diverge from `duckdb_fdw`'s own
version. The build is successful, but `duckdb_fdw` does not load with
the `libduckdb.so` built by `pg_duckdb`, so skip testing it for now.
Will fix once duckdb/pg_duckdb#554 or its successor resolves thing such
that both extensions can use the same DSO.
@theory theory force-pushed the use-duckdb-release-so branch from 628c176 to 24a5278 Compare January 23, 2025 23:38
Rather than letting the Git repo build it from a submodule. Otherwise
the pg_duckdb builder installs it into the Postgres lib directory, which
isn't included in `ld`'s path, so Postgres can't find it. Update to
`trunk-test-tembo:4436f19`, which includes the supported version of
`libduckdb.so`.

Also configure it to be added to `shared_preload_libraries` and needing
to restart.

Copy the same `libduckdb.so` to build `duckdb_fdw`, too, and
explicitly set its version, since it may diverge from `duckdb_fdw`'s own
version. The build is successful, but `duckdb_fdw` does not load with
the `libduckdb.so` built by `pg_duckdb`, so skip testing it for now.
Will fix once duckdb/pg_duckdb#554 or its successor resolves thing such
that both extensions can use the same DSO.
@theory theory force-pushed the use-duckdb-release-so branch from 24a5278 to 9268323 Compare January 24, 2025 17:54
@theory theory merged commit 9268323 into main Jan 24, 2025
17 checks passed
@theory theory deleted the use-duckdb-release-so branch January 24, 2025 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants