Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b4Db5-0004Qo-1x for pgsql-jdbc@arkaria.postgresql.org; Sat, 21 May 2016 20:34:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b4Db4-0000sa-KW for pgsql-jdbc@arkaria.postgresql.org; Sat, 21 May 2016 20:34:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b4Db4-0000sN-6F for pgsql-jdbc@postgresql.org; Sat, 21 May 2016 20:34:06 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b4Db1-0001xF-AH for pgsql-jdbc@postgresql.org; Sat, 21 May 2016 20:34:05 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 5890E2812E25 for ; Sat, 21 May 2016 13:17:06 -0700 (PDT) Date: Sat, 21 May 2016 13:34:02 -0700 (MST) From: dmachop To: pgsql-jdbc@postgresql.org Message-ID: <1463862842105-5904463.post@n5.nabble.com> In-Reply-To: References: <1463755344127-5904350.post@n5.nabble.com> Subject: Re: Postgres jdbc bulk insert stuck MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Tried with older version of postgres jdbc driver and the issue still exists. I recollect reading from Stackoverflow that batch insert in postgres does individual inserts and recommends using copy. However, I cannot use copy due to certain reasons. That's the reason I have to resort to batch insert. Is there a way that I could change some parameters such that it might not hit the maximum limit? (Probably seems to be an issue with larger tables and batch insert works on smaller tables). Just an additional info that the data may contain non-ascii chars while insert (Chinese, German) and using utf-8 option on db as well as on jdbc connection properties. I don't see that as an issue since manual inserts are working good. -- View this message in context: http://postgresql.nabble.com/Postgres-jdbc-bulk-insert-stuck-tp5904350p5904463.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com. -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc