300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > org.postgresql.util.PSQLException: ERROR: no partition of relation “table_name“ found for row

org.postgresql.util.PSQLException: ERROR: no partition of relation “table_name“ found for row

时间:2024-01-17 01:58:21

相关推荐

org.postgresql.util.PSQLException: ERROR: no partition of relation “table_name“ found for row

今天测试反馈了一个测试环境的错误,错误信息如下:

###Errorupdatingdatabase.Cause:org.postgresql.util.PSQLException:ERROR:nopartitionofrelation"swap_data_info"foundforrow详细:Partitionkeyofthefailingrowcontains(create_time)=(-11-1514:44:38.531).###Theerrormayexistinfile[/home/waiqin365_swapsvr/waiqin365-swapsvr-1.3.1/web/WEB-INF/classes/com/zk/api/swap/config/sqlmap/swapMapper.xml]###Theerrormayinvolvecom.zk.api.swap.vo.SwapVO.insert-Inline###Theerroroccurredwhilesettingparameters###SQL:INSERTINTOswap_data_info(id,tenant_id,app_id,data_id,data_type,data_version,data_format,data_source,data,status,status_time,create_time)VALUES(?,?,?,?,?,?,?,?,?,?,?,?)###Cause:org.postgresql.util.PSQLException:ERROR:nopartitionofrelation"swap_data_info"foundforrow详细:Partitionkeyofthefailingrowcontains(create_time)=(-11-1514:44:38.531).;SQL[];ERROR:nopartitionofrelation"swap_data_info"foundforrow

看了下这个错误的详情,得出大致原因:

1.新增数据的时候,分区字段是够传值了

2.分区表是否存在

我的是第二个原因,希望能帮助大家!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。