> ## Documentation Index
> Fetch the complete documentation index at: https://enterprise-docs.dify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Postgresql Database

## Find the Postgresql Database Configuration in the Helm Chart Values

### Display Helm Chart Values

```bash theme={null}
helm show values dify/dify
```

This is an example of the Postgresql database configuration in the Helm chart values.

```yaml theme={null}
externalPostgres:
  enabled: true
  address: localhost
  port: 5432
  credentials:
    dify:
      database: "dify"
      username: "postgres"
      password: "#REPLACE_ME#"
      sslmode: "require"
    enterprise:
      database: "enterprise"
      username: "postgres"
      password: "#REPLACE_ME#"
      sslmode: "require"
```

## `max_connections` configuration

* If you encounter the error message `FATAL: remaining connection slots are reserved for non-replication superuser connections`, you need to increase the `max_connections` configuration for the Postgresql database.
* Suggestions:
  * The default value is 100.
  * Suggest setting the `max_connections` value to `2000`.
