PostgresSQL 常见问题及注意问题
2018-10-24 本文已影响0人
狼團
在运行过程中更改表结构后,JAVA报错 cached plan must not change result type
原因 :postgres server具有server prepared statement功能,默认启用
解决方案: 在JDBC连接声明 prepareThreshold=0 参数禁用 server端的PS功能即可,如下:
jdbc:postgresql://localhost:5432/ms_example?prepareThreshold=0