

 Amazon Redshift 將不再支援從修補程式 198 開始建立新的 Python UDFs。現有 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/)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Amazon Redshift 參數群組
<a name="working-with-parameter-groups"></a>

 在 Amazon Redshift 中，您可以將參數群組與您建立的每個叢集建立關聯。參數群組**為參數的群組，這些參數會套用至您在叢集中建立的所有資料庫。這些參數用於設定查詢逾時和日期樣式等資料庫設定。啟動叢集時，必須將此叢集與參數群組建立關聯。如果稍後想要變更參數群組，您可以修改叢集並選擇不同的參數群組。

每個參數群組都有多個參數，用於設定資料庫的設定。可用的參數群組清單視參數群組所屬的參數群組系列而定。預設參數群組系列為 `redshift-2.0`。

Amazon Redshift 為每個參數群組系列提供一個預設的參數群組。預設參數群組的每個參數都有預設的數值，無法修改。預設參數群組名稱的格式為 `default.parameter_group_family`。例如，`redshift-2.0` 參數群組系列的預設參數群組為 `default.redshift-2.0`。

如果您想使用非預設參數群組的其他參數值，您必須建立自訂參數群組，然後將叢集與群組相關聯。自訂參數群組中的參數值一開始與預設參數群組中的相同。所有參數的初始 `source` 是 `engine-default`，因為值是由 Amazon Redshift 預設。變更參數值後，`source` 將變更為 `user`，表示數值經過修改，不同於預設值。

**注意**  
Amazon Redshift 主控台不會顯示每個參數的 `source`。您必須使用 Amazon Redshift API AWS CLI、 或其中一個 AWS SDKs 來檢視 `source`。

如為您建立的參數群組，您可以隨時修改其參數值，或將所有參數值重設為預設值。也可將不同的參數群組與叢集相關聯。在某些情況下，您可能修改已與叢集相關聯的參數群組中的參數值，或將不同參數群組與叢集建立關聯。在這些情況下，您可能需要重新啟動叢集，更新的參數值才會生效。如果叢集失敗，而且 Amazon Redshift 重新啟動叢集，變更將在此時套用。如果叢集在維護期間重新啟動，則不會套用變更。如需詳細資訊，請參閱[WLM 動態和靜態屬性](workload-mgmt-config.md#wlm-dynamic-and-static-properties)。

## 預設參數值
<a name="default-param-group-values"></a>

**注意**  
 截至 2025 年 1 月 10 日，`require_ssl` 參數的預設值為 true。如果您不希望叢集要求 SSL，您可以在建立叢集時使用自訂參數群組，或修改叢集，以在建立具有預設值的叢集之後將其與自訂參數群組建立關聯。

下表顯示預設參數值的概覽，包含各參數深入資訊的連結。這些是 `redshift-2.0` 參數群組系列的預設值。


| 參數名稱 | Value | 其他資訊 | 
| --- | --- | --- | 
|  auto\$1analyze  |  true  |  《Amazon Redshift 資料庫開發人員指南》中的 [auto\$1analyze](https://docs.aws.amazon.com/redshift/latest/dg/t_Analyzing_tables.html#t_Analyzing_tables-auto-analyze)  | 
|  auto\$1mv  |  true  |  《Amazon Redshift 資料庫開發人員指南》中的[自動具體化視觀表](https://docs.aws.amazon.com/redshift/latest/dg/materialized-view-auto-mv.html) | 
|  datestyle  |   ISO、MDY   |  《Amazon Redshift 資料庫開發人員指南》中的 [datestyle](https://docs.aws.amazon.com/redshift/latest/dg/r_datestyle.html)  | 
|  enable\$1case\$1sensitive\$1identifier  |   false   |  《Amazon Redshift 資料庫開發人員指南》中的 [enable\$1case\$1sensitive\$1identifier](https://docs.aws.amazon.com/redshift/latest/dg/r_enable_case_sensitive_identifier.html)  | 
|  enable\$1user\$1activity\$1logging  |   false   |  本指南中的 [資料庫稽核記錄日誌](db-auditing.md)  | 
|  extra\$1float\$1digits  |  0  |  《Amazon Redshift 資料庫開發人員指南》中的 [extra\$1float\$1digits](https://docs.aws.amazon.com/redshift/latest/dg/r_extra_float_digits.html)  | 
|  max\$1concurrency\$1scaling\$1clusters  |  1  |  《Amazon Redshift 資料庫開發人員指南》中的 [max\$1concurrency\$1scaling\$1clusters](https://docs.aws.amazon.com/redshift/latest/dg/r_max_concurrency_scaling_clusters.html)  | 
|  query\$1group  |  預設   |  《Amazon Redshift 資料庫開發人員指南》中的 [query\$1group](https://docs.aws.amazon.com/redshift/latest/dg/r_query_group.html)  | 
|  require\$1ssl  |  true  |  本指南中的 [設定連線的安全選項](connecting-ssl-support.md)  | 
|  search\$1path  |   \$1user、public   |  《Amazon Redshift 資料庫開發人員指南》中的 [search\$1path](https://docs.aws.amazon.com/redshift/latest/dg/r_search_path.html)  | 
|  statement\$1timeout  |  0  |  《Amazon Redshift 資料庫開發人員指南》中的 [statement\$1timeout](https://docs.aws.amazon.com/redshift/latest/dg/r_statement_timeout.html)  | 
|  wlm\$1json\$1configuration  |   [\$1"auto\$1wlm":true\$1]   |  本指南中的[工作負載管理](workload-mgmt-config.md) | 
|  use\$1fips\$1ssl  |  false  |  只在系統需要符合 FIPS 時啟用與 FIPS 相容的 SSL 模式。 | 

**注意**  
`max_cursor_result_set_size` 參數已棄用。如需游標結果集大小的相關資訊，請參閱《Amazon Redshift 資料庫開發人員指南》**中的[游標限制條件](https://docs.aws.amazon.com/redshift/latest/dg/declare.html#declare-constraints)。

您可在資料庫中使用 `SET` 命令暫時覆寫參數。`SET` 命令僅覆寫表示目前工作階段持續時間的參數。除了上表列出的參數，您也可設定資料庫中的 `wlm_query_slot_count` 來暫時調整槽計數。`wlm_query_slot_count` 參數不適用於參數群組中的組態。如需調整插槽計數的相關資訊，請參閱《Amazon Redshift 資料庫開發人員指南》**中的 [wlm\$1query\$1slot\$1count](https://docs.aws.amazon.com/redshift/latest/dg/r_wlm_query_slot_count.html)。如需暫時覆寫其他參數的相關資訊，請參閱《Amazon Redshift 資料庫開發人員指南》**中的[修改伺服器組態](https://docs.aws.amazon.com/redshift/latest/dg/t_Modifying_the_default_settings.html)。