# Feature Flags

Our DBaas provides feature flags to turn specific features on or off.

## How Feature Flags Work

Each feature has a default state (`on` or `off`) defined by the platform. You can override the default per instance. When updating an instance, only the features you explicitly change are affected — other features retain their current state.

Some features require an instance rollover, which may cause a brief downtime (for single-instance setups) or trigger a failover (for multi-instance setups). The `Rollover` column in the table below indicates which features require this.

## Available Features

| Feature | Default | Description | Rollover required |
| --- | --- | --- | --- |
| `provisioned_metrics` | `off` | Enables [provisioned observability](<https://documentation.syseleven.de/en/products/dbaas/concepts/provisioned-observability/index.md>) for your PostgreSQL instance | ✅ |
| `extensions` | `off` | Allows installing additional [PostgreSQL extensions](<https://documentation.syseleven.de/en/products/dbaas/concepts/extensions/index.md>) on your instance | ✅ |

## Terraform

### Viewing Available Features

```hcl
data "sys11dbaas_features" "this" {
  type = "postgresql"
}
```

The data source returns the list of available features and their default states.

### Enabling Features on an Instance

```hcl
resource "sys11dbaas_database" "this" {
  # ... other configuration ...

  application_config = {
    features = {
      provisioned_metrics = "on"
    }
  }
}
```
