Re: Possible to prevent transaction abort?

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Possible to prevent transaction abort?
Date: 2009-05-01 19:40:32
Message-ID: gtfj7c$gbv$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adam B wrote on 01.05.2009 19:50:
> I realize that I could set a save-point before every INSERT but that
> nearly doubles the processing time.

That's interesting.

I did a quick test with JDBC inserting 500,000 rows and the time when using a
savepoint for each INSERT was not really different to the one when not using a
savepoint (less than a second which could well be caused by other things in the
system).

I tested this locally so no real network traffic involved, which might change
the timing as more stuff is sent over to the server when using the savepoint.

Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adam B 2009-05-01 20:59:36 Re: Possible to prevent transaction abort?
Previous Message Johan Nel 2009-05-01 19:09:23 Re: Possible to prevent transaction abort?