

 Amazon Redshift will no longer support the use of Python UDFs after June 30, 2026. We will start enforcing it in phases. For more information on the details of Python end of life and migration options, see the [ blog post ](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/) that was published on June 30, 2025. 

# Settings

The extension adds one setting, which you set for each session with `SET` and `RESET`. `SET GLOBAL` also works.


| Name | Type | Default | Description | 
| --- | --- | --- | --- | 
| `redshift_allow_query_in_duckdb_transaction` | `BOOLEAN` | `false` | Lets `redshift_query` run inside an explicit DuckDB transaction, where DuckDB `COMMIT` and `ROLLBACK` don't control its Redshift operations, so a `ROLLBACK` doesn't undo them. The extension still refuses it on a handle the open transaction attached, in a transaction an earlier error aborted, and while you are connected with `CONNECT`. This is a debug escape hatch; setting it to `true` logs a warning, and so does the first call it allows inside a DuckDB transaction. | 

It is a debug setting, so `duckdb_settings()` lists it only when you ask for debug settings. `current_setting()` reads it:

```sql
SELECT current_setting('redshift_allow_query_in_duckdb_transaction');
SELECT name, value FROM duckdb_settings(debug := true) WHERE name LIKE 'redshift%';
```

These built-in DuckDB settings also affect the extension.


| Setting | Effect | 
| --- | --- | 
| `allow_extension_repositories` | Needs no change. The default, `'hosts'`, allows the AWS DuckDB extension repository, registered by its host name. `'forbidden'` stops registering it and installing, updating, and loading from it. | 
| `allow_unsigned_extensions` | Leave it off. Builds from the AWS DuckDB extension repository are signed. | 
| `enable_external_access` | While this is `false`, you can't attach a new handle; handles attached before you set it keep working. | 
| `extension_directories` | Where DuckDB keeps installed extensions. | 

For the environment variables that stop a connection, see [Environment variables](duckdb-redshift-security.md#duckdb-redshift-security-env).