
# 全量或增量阶段失败报错，关键词"temporary file size exceeds temp_file_limit"
#### 场景描述
全量或增量同步期间DRS任务报错，同步日志界面提示：retry structures failed events=the fail structures are \[type=index, index=0, schema_name=fossbot, object_name=scan_mr5_file_union\]reason:\[ERROR: temporary file size exceeds temp_file_limit (20000000kB)\]。
#### 可能原因
在执行SQL时生成的临时表较大，超过了系统中临时表空间的上限。
#### 解决方案
1. 参考[修改实例参数](https://support.huaweicloud.com/usermanual-rds-pg/rds_pg_configuration.html)内容，修改目标库temp_file_limit参数，适当调大该参数的值，增加临时表空间上限。
2. 等待数据库重启生效后，在DRS任务管理页面单击"续传"继续同步。同步任务结束后建议将该值调整回原始值，否则可能会因为临时表空间过大导致数据库实例磁盘满。
 
