Skip to content

Inconsistency between duckdb_settings() and duckdb_get_config_flag #12542

@Giorgi

Description

@Giorgi

What happens?

As discussed on Discord, when using the C Api to enumerate DuckDB configuration options, duckdb_config_count and duckdb_get_config_flag only return built-in options. On the other hand, duckdb_settings() will return options from an extension if they are already loaded.

To Reproduce

Enumerate configuration options with duckdb_get_config_flag when some extension is already loaded and compare with duckdb_settings()

OS:

Windows 11 x64

DuckDB Version:

1.0.0

DuckDB Client:

C Api

Full Name:

Giorgi Dalakishvili

Affiliation:

Space International

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a stable release

Did you include all relevant data sets for reproducing the issue?

Not applicable - the reproduction does not require a data set

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?

  • Yes, I have

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions