

 从补丁 198 开始，Amazon Redshift 将不再支持创建新的 Python UDF。现有的 Python UDF 将继续正常运行至 2026 年 6 月 30 日。有关更多信息，请参阅[博客文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

# 联合用户配置
<a name="federated-permissions-user-cofig"></a>

借助 Amazon Redshift 联合身份验证权限，使用 IAM 或 IAM Identity Center（IdC）凭证进行身份验证的用户可以在其所有 Amazon Redshift 仓库中获得一致的体验。

当用户连接到任何 Redshift 集群时，其配置参数（例如日期格式、搜索路径和时区首选项）将自动应用到其会话。这样可以确保在所有集群中保持相同的用户体验而无需手动重新配置，从而提供无缝的个性化体验。

**示例**

以数据分析师 **Alex** 为例，他在主 Redshift 数据库中配置了首选的日期格式和时区。当 Alex 对主数据库运行查询时，所有日期值都以首选格式显示。

现在，当 Alex 连接到另一个 Redshift 仓库中**共享**或**自动挂载**的数据库时，还是会应用相同的首选项。Alex 以相同的日期格式和时区查看结果，从而确保在不同环境中获得一致的体验。

## 在 Amazon Redshift 仓库中保持一致的用户配置
<a name="federated-user-config-settings"></a>

对于使用 **IAM** 或 **AWS IAM Identity Center（IdC）**凭证进行身份验证的用户，以下**用户级[配置](https://docs.aws.amazon.com/redshift/latest/dg/cm_chap_ConfigurationRef.html)**会自动在各个 Redshift 集群之间同步：
+ [datestyle](https://docs.aws.amazon.com/redshift/latest/dg/r_datestyle.html)
+ [enable\_case\_sensitive\_identifier](https://docs.aws.amazon.com/redshift/latest/dg/r_enable_case_sensitive_identifier.html)
+ [extra\_float\_digits](https://docs.aws.amazon.com/redshift/latest/dg/r_extra_float_digits.html)
+ [search\_path](https://docs.aws.amazon.com/redshift/latest/dg/r_search_path.html)
+ [cast\_super\_null\_on\_error](https://docs.aws.amazon.com/redshift/latest/dg/r_cast_super_null_on_error.html)
+ [default\_geometry\_encoding](https://docs.aws.amazon.com/redshift/latest/dg/r_default_geometry_encoding.html)
+ [describe\_field\_name\_in\_uppercase](https://docs.aws.amazon.com/redshift/latest/dg/r_describe_field_name_in_uppercase.html)
+ [downcase\_delimited\_identifier](https://docs.aws.amazon.com/redshift/latest/dg/r_downcase_delimited_identifier.html)
+ [enable\_case\_sensitive\_super\_attribute](https://docs.aws.amazon.com/redshift/latest/dg/r_enable_case_sensitive_super_attribute.html)
+ [enable\_numeric\_rounding](https://docs.aws.amazon.com/redshift/latest/dg/r_enable_numeric_rounding.html)
+ [enable\_result\_cache\_for\_session](https://docs.aws.amazon.com/redshift/latest/dg/r_enable_result_cache_for_session.html)
+ [error\_on\_nondeterministic\_update](https://docs.aws.amazon.com/redshift/latest/dg/r_error_on_nondeterministic_update.html)
+ [interval\_forbid\_composite\_literals](https://docs.aws.amazon.com/redshift/latest/dg/r_interval_forbid_composite_literals.html)
+ [json\_serialization\_enable](https://docs.aws.amazon.com/redshift/latest/dg/r_json_serialization_enable.html)
+ [json\_serialization\_parse\_nested\_strings](https://docs.aws.amazon.com/redshift/latest/dg/r_json_serialization_parse_nested_strings.html)
+ [mv\_enable\_aqmv\_for\_session](https://docs.aws.amazon.com/redshift/latest/dg/r_mv_enable_aqmv_for_session.html)
+ [navigate\_super\_null\_on\_error](https://docs.aws.amazon.com/redshift/latest/dg/r_navigate_super_null_on_error.html)
+ [parse\_super\_null\_on\_error](https://docs.aws.amazon.com/redshift/latest/dg/r_parse_super_null_on_error.html)
+ [spectrum\_enable\_pseudo\_columns](https://docs.aws.amazon.com/redshift/latest/dg/r_spectrum_enable_pseudo_columns.html)
+ [enable\_spectrum\_oid](https://docs.aws.amazon.com/redshift/latest/dg/r_spectrum_enable_spectrum_oid.html)
+ [spectrum\_query\_maxerror](https://docs.aws.amazon.com/redshift/latest/dg/r_spectrum_query_maxerror.html)
+ [stored\_proc\_log\_min\_messages](https://docs.aws.amazon.com/redshift/latest/dg/r_stored_proc_log_min_messages.html)
+ [analyze\_threshold\_percent](https://docs.aws.amazon.com/redshift/latest/dg/r_analyze_threshold_percent.html)
+ [enable\_vacuum\_boost](https://docs.aws.amazon.com/redshift/latest/dg/r_enable_vacuum_boost.html)
+ [pg\_federation\_repeatable\_read](https://docs.aws.amazon.com/redshift/latest/dg/r_pg_federation_repeatable_read.html)

## 连接和配置管理
<a name="federated-user-config-management"></a>
+ 使用 **JDBC** 连接到 Amazon Redshift 时，也可能会自动应用某些**会话级配置**。有关详细信息，请参考 JDBC 会话级配置文档。
+ 用户还可以使用 [ALTER USER](https://docs.aws.amazon.com/redshift/latest/dg/r_ALTER_USER.html) 定义持久的**用户级配置**。