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

fix: Load httpfs & Store DuckDB extensions in PGDATA #200

Merged
merged 9 commits into from
Jan 31, 2025

Conversation

philippemnoel
Copy link
Collaborator

@philippemnoel philippemnoel commented Jan 31, 2025

Ticket(s) Closed

What

This PR solves two issues:

1- On CNPG, only the PGDATA directory is writable. This was causing issues to some of our customers and to Tembo (who also uses CNPG). By default, DuckDB stores its extension files in /var/lib/postgresql/.duckdb, which was read-only. Instead, we retrieve the PGDATA path and set it as the extension path for DuckDB extensions.

2- A previous upgrade to a newer duckdb-rs version brought us a version of the client that no longer bundled the httpfs extension. We therefore load it ourselves.

Why

Fix customer issues.

How

^

Tests

Need to write unit tests.

@philippemnoel philippemnoel changed the title fix: Load httpfs fix: Load httpfs & Store DuckDB extensions in PGDATA Jan 31, 2025
@rebasedming rebasedming merged commit 82229a1 into dev Jan 31, 2025
12 checks passed
@rebasedming rebasedming deleted the feat/load-httpfs branch January 31, 2025 16:40
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.

Issues with read-only when a UDF tries to download a DuckDB Extension
2 participants