| 1443 | // applyHTTPFSRetryBudget for why this can't run in ConfigureMainDB. |
| 1444 | applyHTTPFSRetryBudget(db) |
| 1445 | applyParquetPrefetchPolicy(db, cfg.DisableParquetPrefetching) |
| 1446 | |
| 1447 | return nil |
| 1448 | } |
| 1449 | |
| 1450 | // CreatePassthroughDBConnection creates a DuckDB connection without pg_catalog |
| 1451 | // or information_schema initialization. DuckLake is still attached if configured |
| 1452 | // so passthrough users can access the same data. This is used for passthrough users |
| 1453 | // who send DuckDB-native SQL and don't need the PostgreSQL compatibility layer. |
| 1454 | func CreatePassthroughDBConnection(cfg Config, duckLakeSem chan struct{}, username string, serverStartTime time.Time, serverVersion string) (*sql.DB, error) { |