Re: Problem inserting more than 80 registers!?

From: Carlos Barroso <miguel(dot)barroso(at)mail(dot)pt>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Problem inserting more than 80 registers!?
Date: 2004-05-07 16:27:01
Message-ID: 20040507162702.C4763D1F407@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

> Carlos Barroso <miguel(dot)barroso(at)mail(dot)pt> writes:
> > I'm using Postgres 7.4.2. I compiled it without changing any server
> > parameter.
> > I'm trying to do a bulk of 90 inserts in one table, commiting at the
end.
> > My problem is that the 90 inserts are processed on the client
(Hibernate),
> > but in my table I only have 80! It never inserts more than 80
registers.
>
> There is certainly no such limitation in Postgres itself. Better take
> another look at your own code. (Or Hibernate, whatever that is ...)

Thanks for the reply Tom.
I tried with pure JDBC and still have the same problem.
Here's the code:

//-- JDBC TESTE
Statement st = null;
for(int i = 1; i <= 90; i++) {
st = con.createStatement();
st.executeUpdate("INSERT INTO
plano_ensaio_sq015(id,ensaio_fk,op_fk,data_hora,estado,user_id,dt_hr)
VALUES (" + i + ",1,1,'2004-04-04 10:11:11','A','mike','2004-05-05
05:55:55')");
}
//--

Any ideas?
--
Adira j ao Net Dialup Light. Acesso profissional gratuito.
NovisNet, a Internet de quem trabalha. http://www.novisnet.pt

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2004-05-07 17:19:52 Re: Problem inserting more than 80 registers!?
Previous Message Tom Lane 2004-05-07 15:44:49 Re: Problem inserting more than 80 registers!?