

 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/)。

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

# 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)

## Description
<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
```