On Wed, May 20, 2009 at 4:41 PM, Sergey Samokhin <prikrutil@xxxxxxxxx> 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@xxxxxxxxx -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general