MCPcopy Create free account
hub / github.com/PostHog/duckgres / LoadExtensions

Function LoadExtensions

server/server.go:1366–1368  ·  view source on GitHub ↗

LoadExtensions installs and loads DuckDB extensions. This is a standalone function so it can be reused by control plane workers. Extension strings can include a source, e.g. "cache_httpfs FROM community". INSTALL uses the full string; LOAD uses just the extension name. NOTE: Extension names come fr

(db *sql.DB, extensions []string)

Source from the content-addressed store, hash-verified

1364 } else if cfg.DuckLake.MetadataStore != "" {
1365 duckLakeMode = true
1366
1367 tryEnsureDuckLakeQueryLogSurface(db, cfg, username)
1368
1369 // Recreate pg_class_full to source from DuckLake metadata instead of DuckDB's pg_catalog.
1370 // This ensures consistent PostgreSQL-compatible OIDs across all pg_class queries.
1371 if err := recreatePgClassForDuckLake(db); err != nil {

Callers 4

ConfigureMainDBFunction · 0.85
openQueryLogDuckLakeDBFunction · 0.85
NewDuckLakeCheckpointerFunction · 0.85

Calls 1

loadExtensionsWithFunction · 0.85

Tested by

no test coverage detected