View a markdown version of this page

enable_result_cache_for_session - Amazon Redshift

2026 年 6 月 30 日之后,Amazon Redshift 不再支持使用 Python UDF。我们将分阶段开始执行。有关 Python 生命周期终止和迁移选项详情的更多信息,请参阅 2025 年 6 月 30 日发布的博客文章

enable_result_cache_for_session

值(默认为粗体)

on(true),off(false)

说明

指定是否使用查询结果缓存。如果 enable_result_cache_for_sessionon,则在提交查询时,Amazon Redshift 会检查有无查询结果的有效缓存副本。如果在结果缓存中找到匹配项,Amazon Redshift 会使用缓存的结果而不执行查询。如果 enable_result_cache_for_sessionoff,则 Amazon Redshift 会忽略结果缓存,并在所有查询提交时运行查询。

示例

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