【postgresql】PSQLException: An I/O error occurred while sending to the backend.

org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.

发送到后端时发生I/O错误。

java.io.IOException: Tried to send an out-of-range integer as a 2-byte value: 34284

尝试将超出范围的整数作为2字节值发送:34284

postgresql数据库的JDBC驱动Q对参数数量是有上限限制的,最大值为32767。

解决方案:

切分一下代码中参数的数量,分成多次查询,结果在合并。




相关推荐
l1t3 小时前
DeekSeek辅助总结PostgreSQL Mistakes and How to Avoid Them 的一个例子
数据库·postgresql
醉风塘3 小时前
JDBC批量操作终极指南:PreparedStatement批处理与事务性能优化实战
数据库·性能优化
2401_838472513 小时前
使用Python处理计算机图形学(PIL/Pillow)
jvm·数据库·python
invicinble4 小时前
对于mysql层对sql层面的知识体系的理解和把握
数据库·sql·mysql
2301_790300964 小时前
用Matplotlib绘制专业图表:从基础到高级
jvm·数据库·python
DFT计算杂谈4 小时前
VASP+PHONOPY+pypolymlpj计算不同温度下声子谱,附批处理脚本
java·前端·数据库·人工智能·python
数据知道4 小时前
PostgreSQL核心原理:为什么数据库偶尔会卡顿?
数据库·postgresql
Nandeska4 小时前
14、MySQL基于GTID的数据同步
数据库·mysql
Mr_Xuhhh4 小时前
MySQL表的内连接与外连接详解
java·前端·数据库