从 2025 年 11 月 1 日起,Amazon Redshift 将不再支持创建新的 Python UDF。如果您想要使用 Python UDF,请在该日期之前创建 UDF。现有的 Python UDF 将继续正常运行。有关更多信息,请参阅博客文章
enable_result_cache_for_session
值(默认为粗体)
on (true)、off (false)
描述
指定是否使用查询结果缓存。如果 enable_result_cache_for_session
是 on
,则在提交查询时,Amazon Redshift 会检查有无查询结果的有效缓存副本。如果在结果缓存中找到匹配项,Amazon Redshift 会使用缓存的结果而不执行查询。如果 enable_result_cache_for_session
是 off
,则 Amazon Redshift 会忽略结果缓存,并在所有查询提交时运行查询。
示例
SET enable_result_cache_for_session TO off; --Amazon Redshift now ignores the results cache