首页 > 解决方案 > 获取 Amazon Redshift 存储过程中 UNLOADed 记录的计数

问题描述

我的 UNLOAD 语句位于 Amazon Redshift 的存储过程中。我想记录有关卸载到 S3 的记录数的信息。

我用了

GET DIAGNOSTICS integer_var := ROW_COUNT;

RAISE NOTICE 'Unload executed with %', integer_var;

但是它登录到 SVL_STORED_PROC_MESSAGES “卸载执行为 0”,实际上卸载了 60K 多条记录。所以,我想得到,“卸载以 60000 执行”。

请问有人可以帮忙吗

标签: amazon-web-servicesamazon-redshiftplpgsql

解决方案


推荐阅读