-
-
Notifications
You must be signed in to change notification settings - Fork 20
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: move loading httpfs
and setting extension directory to beginning of connection
#204
Conversation
Happy to see you already submitted a PR to fix this issue. 😁 |
And maybe we don't need to |
It appears that the deadlock in the connection is indeed caused by the recursive call to pub fn set_duckdb_extension_directory(conn: &Connection) -> Result<usize> {
let data_dir = unsafe {
CStr::from_ptr(pgrx::pg_sys::DataDir)
.to_str()
.map_err(|e| anyhow::anyhow!("Failed to convert DataDir to &str: {}", e))?
};
conn.execute(format!("SET extension_directory = '{data_dir}'").as_str(), []).map_err(|err| anyhow!("{err}"))
} |
Signed-off-by: Philippe Noël <[email protected]>
Thank YOU for fixing this! |
Signed-off-by: Philippe Noël <[email protected]>
Signed-off-by: Philippe Noël <[email protected]>
Signed-off-by: Philippe Noël <[email protected]>
Ticket(s) Closed
What
Moves loading
httpfs
and setting the extension directory to the start of the DuckDB connection so that the settings are available to the rest of the connection.Why
How
Tests