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

解决方案:

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




相关推荐
LaughingZhu4 小时前
Product Hunt 每日热榜 | 2026-02-14
数据库·人工智能·经验分享·神经网络·搜索引擎·chatgpt
软件派4 小时前
近两年国外主流数据库深度解析:从技术特性到场景适配
数据库
Elastic 中国社区官方博客4 小时前
DevRel 通讯 — 2026 年 2 月
大数据·数据库·人工智能·elasticsearch·搜索引擎·ai·jina
学到头秃的suhian6 小时前
Redis消息队列
数据库·redis·缓存
野犬寒鸦6 小时前
从零起步学习并发编程 || 第九章:Future 类详解及CompletableFuture 类在项目实战中的应用
java·开发语言·jvm·数据库·后端·学习
爆米花byh6 小时前
在RockyLinux9环境的Doris单机版安装
linux·数据库·database
2401_848009726 小时前
Redis进阶学习
数据库·redis·学习·缓存
卓怡学长7 小时前
m225在线房屋租赁和电子签约系统的设计与实现
java·数据库·spring·tomcat·maven·intellij-idea
一生有你20208 小时前
powerdesigner使用逆向工程生成物理模型
数据库
zcn1268 小时前
时间条件高效用法
数据库·sql优化改写