TdSql(pg)版本merge into 写法报out of memory问题处理

1.报错信息

  ### Error updating database.  Cause: com.tencentcloud.tdsql.pg.util.PSQLException: ERROR: out of memory
  详细:Failed on request of size 16.

2.解决办法

--查询union_do_cast数据
show union_do_cast;
--如果结果是on,需要进行设置
--需要去超级管理员模式进行修改
alter user xxx set union_do_cast = 0;
--再查询一下
show union_do_cast;
--结果为off,即可。

你可能感兴趣的:(数据库,sql)