

 Amazon Redshift 將不再支援在 2026 年 6 月 30 日之後使用 Python UDFs。我們將開始分階段強制執行。如需 Python 生命週期結束和遷移選項的詳細資訊，請參閱 2025 年 6 月 30 日發佈的[部落格文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

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

# enable\_result\_cache\_for\_session
<a name="r_enable_result_cache_for_session"></a>

## 值 (粗體為預設值)
<a name="r_enable_result_cache_for_session-values"></a>

**on (true)**、off (false)

## 說明
<a name="r_enable_result_cache_for_session-description"></a>

指定是否使用查詢結果快取。如果 `enable_result_cache_for_session` 為 `on`，當提交查詢時，Amazon Redshift 會檢查查詢結果的有效快取副本。如果在結果快取中找到符合者，Amazon Redshift 會使用快取的結果，不會執行查詢。如果 `enable_result_cache_for_session` 為 `off`，Amazon Redshift 會在提交查詢時忽略結果快取並執行所有查詢。

## 範例
<a name="r_enable_result_cache_for_session-example"></a>

```
SET enable_result_cache_for_session TO off;
--Amazon Redshift now ignores the results cache
```