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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [INTERFACES] Re: [GENERAL] JDBC and insert - stack overflow
Дата
Msg-id 23467.927837887@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [INTERFACES] Re: [GENERAL] JDBC and insert - stack overflow  (Peter T Mount <peter@retep.org.uk>)
Список pgsql-interfaces
Peter T Mount <peter@retep.org.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


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: JT Kirkpatrick
Дата:
Сообщение: illegal page faults. . .
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [INTERFACES] Wierd error when creating a table...