pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Ribe <scott_ribe@elevated-dev.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Catch exceptions outside function
Date: Wed, 18 Sep 2013 07:52:33 -0600
Message-ID: <B0F42216-0C44-44EE-9153-B34FB59A0A5E@elevated-dev.com> (raw)
In-Reply-To: <1379510613320-5771426.post@n5.nabble.com>
References: <452256586.387717.1379499437400.JavaMail.root@trovaprezzi.it>
	<A737B7A37273E048B164557ADEF4A58B17C21F41@ntex2010a.host.magwien.gv.at>
	<515129598.391580.1379505217287.JavaMail.root@trovaprezzi.it>
	<1379510613320-5771426.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On Sep 18, 2013, at 7:23 AM, David Johnston <polobo@yahoo.com> wrote:

> If an exception gets that far your transaction
> has failed and you have to ROLLBACK.

Right, and after my prior post where I suggested rollback, I realized, it may be the case OP doesn't even realize there's an open transaction, which must eventually be committed or rolled back...

-- 
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice






-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (10+ messages)  latest in thread

Message-ID: <B0F42216-0C44-44EE-9153-B34FB59A0A5E@elevated-dev.com>
Permalink:  ../B0F42216-0C44-44EE-9153-B34FB59A0A5E@elevated-dev.com/
Also on:    postgresql.org/message-id/B0F42216-0C44-44EE-9153-B34FB59A0A5E@elevated-dev.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scott_ribe@elevated-dev.com
  Subject: Re: Catch exceptions outside function
  In-Reply-To: <B0F42216-0C44-44EE-9153-B34FB59A0A5E@elevated-dev.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox