Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRu2M-0000sX-Ge for pgsql-jdbc@arkaria.postgresql.org; Wed, 09 Mar 2022 10:59:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRu2K-0003Er-OB for pgsql-jdbc@arkaria.postgresql.org; Wed, 09 Mar 2022 10:59:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRsQu-0007kd-Fq for pgsql-jdbc@lists.postgresql.org; Wed, 09 Mar 2022 09:16:36 +0000 Received: from ns101513.ip-147-135-7.us ([147.135.7.79] helo=smtp.gromco.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRsQs-0001zC-M6 for pgsql-jdbc@lists.postgresql.org; Wed, 09 Mar 2022 09:16:36 +0000 Received: from [10.11.0.6] (unknown [10.11.0.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mal) by smtp.gromco.com (Postfix) with ESMTPSA id 1C8E934080F for ; Wed, 9 Mar 2022 04:16:30 -0500 (EST) To: pgsql-jdbc@lists.postgresql.org From: Vladislav Malyshkin Subject: JDBC prepared statement: a 32767 limit of arguments number Message-ID: Date: Wed, 9 Mar 2022 04:16:29 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.