enable_result_cache_for_session - Amazon Redshift

从补丁 198 开始,Amazon Redshift 将不再支持创建新的 Python UDF。现有的 Python UDF 将继续正常运行至 2026 年 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