Skip to content

initializes unknown indexes on catalog lookup#11551

Merged
Mytherin merged 2 commits intoduckdb:mainfrom
Maxxen:initialize-unknown-index-on-lookup
Apr 11, 2024
Merged

initializes unknown indexes on catalog lookup#11551
Mytherin merged 2 commits intoduckdb:mainfrom
Maxxen:initialize-unknown-index-on-lookup

Conversation

@Maxxen
Copy link
Member

@Maxxen Maxxen commented Apr 8, 2024

Over in https://github.com/Maxxen/duckdb-vss I've ran into an issue where if you create a custom index and restart the database, its not possible to DROP the index or the table it applies to without first running a query against the table. This is because we don't initialize "unknown" extension-provided indexes until we need to access them during a scan.

This PR changes this so that any unknown indexes are initialized as soon as you make a catalog lookup on a table or an index entry directly. Im not sure if this is the best place to do this, but as we're initializing foreign keys here anyway it felt suitable.

@Mytherin Mytherin merged commit f16b6a3 into duckdb:main Apr 11, 2024
@Mytherin
Copy link
Collaborator

Thanks! LGTM

github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Apr 11, 2024
Merge pull request duckdb/duckdb#11551 from Maxxen/initialize-unknown-index-on-lookup
Merge pull request duckdb/duckdb#11600 from chrisiou/support-gzipped-files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants