[英]ERROR: current transaction is aborted, commands ignored until end of transaction block — export data from Aqua studio
I am trying to export one table from Aquastudio into CSV file. 我正在尝试将一张表从Aquastudio导出到CSV文件。 The table has approximately 4.4 million rows.
该表大约有440万行。 When I am trying to use the export window function in the aqua studio, I am facing the following error:
当我尝试在Aqua Studio中使用导出窗口功能时,遇到以下错误:
Error: ERROR: current transaction is aborted, commands ignored until end of transaction block
错误:ERROR:当前事务中止,命令被忽略,直到事务块结束
I am not understanding what the problem is. 我不明白问题是什么。 I read few articles regarding this error and found that this is happening due to some error in the last postgreSQL command.
我读了几篇有关此错误的文章,发现这是由于上一个postgreSQL命令中的某些错误而发生的。 I did not use any SQL commands for this export and I dont know how to debug this.
我没有为此导出使用任何SQL命令,而且我不知道如何调试它。 I am also unable to view the log files.
我也无法查看日志文件。
Use rollback
to cancel the previous query. 使用
rollback
取消上一个查询。 After that, you will be able to execute your current query. 之后,您将能够执行当前查询。
You probably shouldn't be exporting millions of rows through a JDBC/ODBC connection, especially for Redshift. 您可能不应该通过JDBC / ODBC连接导出数百万行,尤其是对于Redshift。
For Redshift, please use the UNLOAD
command documented here . 对于Redshift,请使用此处记录的
UNLOAD
命令 。 You'll have to UNLOAD
the file to S3 and download it from there. 您必须将文件
UNLOAD
到S3并从那里下载。
For Postgres, use COPY TO
as documented here . 对于Postgres,请使用此处记录的
COPY TO
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.