Thoughts on linking to a static libduckdb? #617
tristan957
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At Neon, we are going to deploy
pg_duckdb
for our users. As you all are no doubt familiar, there are other extensions using duckdb behind the scenes, includingpg_mooncake
. We have been offeringpg_mooncake
on the platform for a few months at this point, so it is the "incumbent". Bothpg_mooncake
andpg_duckdb
installlibduckdb.so
into the same location in a Postgres installation, so it's a race to see whoselibduckdb.so
ends up in the Postgres installation tree. This problem manifests as unknown symbols because both projects pin different versions of pg_duckdb.An easy solution is to just statically link DuckDB, which the build system already supports by producing a
libduckdb_static.a
. I'm not sure if you would want this to be the default or the only option. I don't really expect y'all as upstream to produce the PR yourselves since we are probably the first users to run into this, so I'm more just looking to see if y'all would accept a PR from Neon.Beta Was this translation helpful? Give feedback.
All reactions