Skip to content

[DON'T MERGE] Code change to upstream#1

Draft
qsliu2017 wants to merge 5 commits intomainfrom
pgducklake
Draft

[DON'T MERGE] Code change to upstream#1
qsliu2017 wants to merge 5 commits intomainfrom
pgducklake

Conversation

@qsliu2017
Copy link

No description provided.

qsliu2017 and others added 5 commits February 12, 2026 15:49
Add a C-exported function that returns a void* pointer to the DuckDB
database instance managed by pg_duckdb. This allows external PostgreSQL
extensions (e.g. pg_ducklake_next) to access the DuckDB instance for
loading statically-linked DuckDB extensions via LoadStaticExtension<T>().

Follows the same pattern as RegisterDuckdbTableAm in pgduckdb_table_am.cpp.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
External extensions (e.g. pg_ducklake) need to call
LoadStaticExtension() but cannot do so during _PG_init() because the
DuckDB instance is not yet initialized. This adds a callback
registration API so external extensions can register a loader that
pg_duckdb invokes during DuckDBManager::Initialize(), after the
instance is fully configured.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant