Search Postgresql Archives

Re: Raise functionality

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 05, 2009 at 08:24:24AM -0600, Michael Gould wrote:
> We want to control from our application how to handle certain exceptions. I
> believe that Raise is the functionality that we want to use.  The
> documentation is a little light on what happens on the client side.

That's because it's up to the client to decide what to do.  You'll need
to look at the documentation of whatever library/code you're using
to talk to PG.  PG just aborts the transaction for anything apart
from NOTIFY and hence your client will just see the transaction/query
failing.  How you disentangle this is up to your code and how they with
your drivers.

I'd just write a plpgsql function that raises an error, call it from
your code, and see what happens.

-- 
  Sam  http://samason.me.uk/

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux