From: dmachop <dmachop@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Postgres jdbc bulk insert stuck
Date: Sat, 21 May 2016 13:34:02 -0700 (MST)
Message-ID: <1463862842105-5904463.post@n5.nabble.com> (raw)
In-Reply-To: <CADK3HHJoo9pQ2GpKj4ELRYfVZziPdnthUFbtNKyvOAbx1y8C0A@mail.gmail.com>
References: <1463755344127-5904350.post@n5.nabble.com>
<CADK3HHJoo9pQ2GpKj4ELRYfVZziPdnthUFbtNKyvOAbx1y8C0A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Tried with older version of postgres jdbc driver
<http://mvnrepository.com/artifact/org.postgresql/postgresql/9.3-1104-jdbc41;
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: dmachop@gmail.com
Subject: Re: Postgres jdbc bulk insert stuck
In-Reply-To: <1463862842105-5904463.post@n5.nabble.com>
References: <1463755344127-5904350.post@n5.nabble.com> <CADK3HHJoo9pQ2GpKj4ELRYfVZziPdnthUFbtNKyvOAbx1y8C0A@mail.gmail.com> <1463862842105-5904463.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox