我正在使用AWS数据库管理服务将未加密的postgres数据库迁移到加密的数据库,但是出现此错误。
[TARGET_LOAD ]E: RetCode: SQL_ERROR SqlState: 0A000 NativeError: 1 Message: ERROR: cannot truncate a table referenced in a foreign key constraint; Error while executing the query [1022502] (ar_odbc_stmt.c:4622)
要解决此错误,我什至将session_replication_role设置为'replica'。但是我得到了相同的结果。
任何建议如何解决此错误?