Re: How should I deal with disconnects during insert? - Mailing list pgsql-general

From David Wilson
Subject Re: How should I deal with disconnects during insert?
Date
Msg-id e7f9235d0905201345x74b9370ej332301d54fbdebfa@mail.gmail.com
Whole thread Raw
In response to How should I deal with disconnects during insert?  (Sergey Samokhin <prikrutil@gmail.com>)
List pgsql-general
On Wed, May 20, 2009 at 4:41 PM, Sergey Samokhin <prikrutil@gmail.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.t.wilson@gmail.com

pgsql-general by date:

Previous
From: Sergey Samokhin
Date:
Subject: How should I deal with disconnects during insert?
Next
From: Sam Mason
Date:
Subject: Re: How should I deal with disconnects during insert?