Skip to content

Configurable, pre-installable DuckDB extensions; offline startup #202

Description

@jrosskopf

Problem

The default extension list is hard-coded (src/config_manager.cpp, httpfs, ducklake, fts, json, postgres, sqlite, parquet) and INSTALLed over the network at every boot (DatabaseManager::loadDefaultExtensions). The published image ships none, so every fresh container downloads them. A missing extension is only a warning.

Found while fixing this: flAPI's DuckDB loads no extension statically, so even core_functions (needed by every query) is silently downloaded on the first query of every fresh container.

Proposal

  • duckdb.default-extensions: [...] (default unchanged; [] allowed; scalar refused).
  • FLAPI_EXTENSION_DIRECTORY: default extension_directory when the config sets none.
  • FLAPI_EXTENSIONS_OFFLINE=1: no INSTALL, autoinstall_known_extensions=false, fail fast naming the missing extensions (incl. core_functions).
  • flapi extensions install [--config flapi.yaml] [--dir <dir>] [ext[@repo] ...]: installs core_functions + defaults + every INSTALL in connections.*.init, for image builds.

Gap G2 of the Cloud Run review.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions