Error message Query Cancelled on User's Request

时间:2016-04-07 10:28:39

标签: postgresql amazon-redshift

I'm getting this error every once in a while. I'm passing through to AWS Redshift using SAS ETL tool. When running the statement failed, locally, on Aginity or SQL-Workbench, it completes successfully. When I log into these clients using the SAS ETL user - still completes successfully. I have 2 DBs using the same ODBC and only one DB returns this error, so it is definitely not a driver thing. It could fail for just about every job SAS sends, so it's not a problem with SAS.

Set_timeout is set to maximum.

Could someone please suggest what might be the problem?

Thank you.

1 个答案:

答案 0 :(得分:0)

将statement_timeout设置为0可能还不够,如文档中所述:

  

如果WLM超时(max_execution_time)也被指定为WLM配置的一部分,则使用较低的statement_timeout和max_execution_time。

来自http://docs.aws.amazon.com/redshift/latest/dg/r_statement_timeout.html