Re: How should I deal with disconnects during insert?

From: David Wilson <david(dot)t(dot)wilson(at)gmail(dot)com>
To: Sergey Samokhin <prikrutil(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How should I deal with disconnects during insert?
Date: 2009-05-20 20:45:54
Message-ID: e7f9235d0905201345x74b9370ej332301d54fbdebfa@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, May 20, 2009 at 4:41 PM, Sergey Samokhin <prikrutil(at)gmail(dot)com> wrote:

> Is there a way to do #1 (it's a bit cleaner and simpler to implement)?

You could wrap the whole thing in a transaction. If you don't get to
the commit, the whole transaction should roll back.

--
- David T. Wilson
david(dot)t(dot)wilson(at)gmail(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2009-05-20 22:18:31 Re: How should I deal with disconnects during insert?
Previous Message Sergey Samokhin 2009-05-20 20:41:33 How should I deal with disconnects during insert?