« Return to Thread: Query parameters limit in postgres jdbc driver?

Re: Query parameters limit in postgres jdbc driver?

by Tom Lane-2 :: Rate this Message:

Reply to Author | View in Thread

olafos <olafoos@...> writes:
> Seems like the driver is trying to send the number 40,000 (which is actually
> the number of query parameters) as a 2-byte integer. Is there any limit to
> the number of jdbc query parameters in postgresql?

Yeah, 2^16, as you already noticed.

40000 parameters is far beyond the bounds of sanity anyway.  Try sending
them as a single array parameter, ie "foo = any (?::int[])"

                        regards, tom lane

--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@...)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

 « Return to Thread: Query parameters limit in postgres jdbc driver?