Re: Query parameters limit in postgres jdbc driver?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query parameters limit in postgres jdbc driver?
Дата
Msg-id 10218.1208960238@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Query parameters limit in postgres jdbc driver?  (olafos <olafoos@wp.pl>)
Ответы Re: Query parameters limit in postgres jdbc driver?  (Olaf Tomczak <olafoos@wp.pl>)
Список pgsql-jdbc
olafos <olafoos@wp.pl> 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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Creating a sequence
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Creating a sequence