On Wednesday, March 9, 2022, Vladislav Malyshkin <mal(at)gromco(dot)com> wrote:
> Currently postgres JDBC driver has a 32767 limit for the number of
> prepared statement arguments, see e.g.
> https://luppeng.wordpress.com/2020/05/20/postgresql-jdbc-
> driver-upper-limit-on-parameters-in-preparedstatement/
> Can this limit be lifted. There is no any such a limit in JDBC spec.
>
There is little motivation to try since if you approach that limit you
should probably write your query differently anyway - like using a temp
table and a join instead of an IN operator.
David H.