The PostgreSQL connector uses configuration parameters to establish connections and authenticate with a PostgreSQL database. These parameters are configured at the connector instance level and are used by all PostgreSQL connector actions.
You can find the list of configuration parameters when you select the desired connector from the left pane.
This view displays all connector settings and configurations that are applied among all actions. You can use configuration parameters to store values that are shared across multiple tasks executed with the same connector, such as service endpoints and connection settings. Configuration parameters are configured at the connector instance level and are available to all actions performed by that connector.
When configuring authentication properties or connector parameters, use environment secret references instead of hardcoding credentials, API keys, tokens, or other sensitive values. Secrets are stored separately from application metadata, encrypted at rest, transmitted securely, and resolved only when needed during deployment or runtime.
Note that the secrets can be referenced in authentication and connector configuration only.
You can reference secrets defined in Studio Admin's Secrets section in authentication properties or connector parameters. Secrets are referenced by name using the ${secrets.SECRET_NAME} context expression, for example ${secrets.CLIENT_ID} or ${secrets.CLIENT_SECRET}.
The configuration parameters of the connector are:
| Parameter | Required | Description |
|---|---|---|
| DB_USERNAME | Required | The database user account used to connect to PostgreSQL and execute SQL statements. Example: connector-user. |
| DB_PASSWORD | Required | The password associated with the configured database user account. |
| POSTGRES_HOST | Optional | The host name or IP address of the PostgreSQL server. Example: postgres.example.com. |
| POSTGRES_PORT | Optional | The port used by the PostgreSQL server. Example: 421. |
| DB_NAME | Optional | The name of the database against which SQL statements will be executed. Example: inventory. |
| DB_DATASOURCE | Required | TThe JDBC datasource connection string used to connect to PostgreSQL. By default, this value is constructed from POSTGRES_HOST, POSTGRES_PORT and DB_NAME: jdbc:postgresql://${POSTGRES_HOST}:${POSTGRES_PORT}/${DB_NAME} |
| DB_DRIVER_CLASS_NAME | Optional | The JDBC driver used to communicate with PostgreSQL. The default value is org.postgresql.Driver. |
| QUERY_TIMEOUT | Optional | Maximum time in seconds before an operation is aborted. The scope ranges from 60 s to 180 s. |