Re: [INTERFACES] Re: [GENERAL] JDBC and insert - stack overflow

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter T Mount <peter(at)retep(dot)org(dot)uk>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] Re: [GENERAL] JDBC and insert - stack overflow
Date: 1999-05-27 20:44:47
Message-ID: 23467.927837887@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Peter T Mount <peter(at)retep(dot)org(dot)uk> writes:
>> By the way, use con.setAutoCommit( false ) to have all the inserts in one
>> big transaction. It saves a lot of time.

> Don't forget to commit() at the end, as you can't guarantee that a
> transaction will be committed when the connection closes.

In fact, I believe that we guarantee the opposite: any open transaction
will be aborted if the client closes the connection without sending a
commit command...

regards, tom lane

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 1999-05-27 20:54:52 Re: [INTERFACES] Wierd error when creating a table...
Previous Message JT Kirkpatrick 1999-05-27 18:29:36 illegal page faults. . .