duckdb / duckdb

DuckDB is an in-process SQL OLAP Database Management System
http://www.duckdb.org
MIT License
17.75k stars 1.51k forks source link

Remove ClientContext usage in Checkpoint Reader #12076

Closed Mytherin closed 2 weeks ago

Mytherin commented 2 weeks ago

Fixes https://github.com/duckdb/duckdb/issues/4578 Fixes https://github.com/duckdb/duckdb/issues/10263

This PR is a follow-up from previous clean-up around the checkpoint reader. We remove the usage of the ClientContext from the checkpoint reader, and no longer do any binding when reading a database file. This fixes a number of issues - in particular, we no longer need to bind default values, types or indexes on database initialization. As a result, several issues regarding dependencies (either between catalog entries, or on extensions) are resolved.