【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。

解决方案:

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




相关推荐
AllData公司负责人3 小时前
实战二:AllData大模型与AI数据底座-数据传输平台-DBSyncer,搭建 Http 接口同步至 Doris,API 业务数据自动拉取入数仓
大数据·数据库·数据仓库·人工智能·算法·http·doris
船神丿男人5 小时前
DevDocQA 的 Redis 答案缓存实战:版本切换、异步写回与故障排查
数据库·redis·缓存
CoderYanger7 小时前
Java EE 进阶:12.Spring AOP(第二弹)
java·前端·数据库·spring boot·spring·java-ee·mybatis
云上工程笔记7 小时前
企业大模型调用数据安全与合规怎么保障:2026 年等保、数据留存、密钥与 IP 白名单清单
数据库·网络协议·tcp/ip
真上帝的左手8 小时前
4. 关系型数据库-MySQL-实战-索引治理
数据库·mysql·index
Joy T9 小时前
MySQL Outbox、Redis Streams 与 LangGraph——如何构建可靠的异步 AI Agent
数据库·redis·mysql·任务队列·redis streams·mysql outbox
FungLeo9 小时前
FengCMS · PHP+MySQL 升级实录· 回归测试从 69 项到 478 项:HTTP/数据库回归套件怎么搭
数据库·mysql·php·回归测试·fengcms
captain3769 小时前
Redis简单使用
数据库·redis·缓存
代码不停10 小时前
Redis基本数据类型
数据库·redis
aifannihao10 小时前
ON CONFLICT 冲突后返回空:sqlite3 实测 get-or-create
数据库·python·postgresql·sqlite3·标准库