From: | "Josh Berkus" <josh(at)agliodbs(dot)com> |
---|---|
To: | "Eaglet" <Aquil8(at)infinito(dot)it>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: handling exceptions, really not simple... :-(( |
Date: | 2001-11-15 16:52:05 |
Message-ID: | web-506730@davinci.ethosmedia.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-hackers pgsql-sql |
Eaglet,
In the future, please refrain from cross-posting on multiple PostgreSQL
lists. We get enough traffic without seeing the same message on 3
lists.
> The goal to achieve is to trap every kind of execution errors without
> trying
> to prevent their occurrence.
> In any case, I usually can't be sure the function (F_EXT) works
> correcty: an
> exception could be lanched by an internal function (F_INT), I
> couldn't know
> to estabilish what happens and where ...
Unfortunately, PG/plSQL does not currently support any programmed
exception handling. If an exception occurs in a pgplsql function, it
rolls back the entire function, including rolling back any calling
functions on a cascading basis.
This is partly due, as I understand it, to Postgres' lack of support for
nested transactions. Hopefully one of the Core Team will speak up with
the prognosis on fixing this particular issue. Right now, projects
needing sophisticated exception handling are being done in middleware
languages that support it, such as Java and Perl.
See Oracle <--> Postgres porting guides at
http://techdocs.postgresql.org/
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Luis Amigo | 2001-11-15 17:05:17 | Re: Importing large data files into PostgreSQL |
Previous Message | Luis Amigo | 2001-11-15 16:27:15 | bug?? in oid2name |
From | Date | Subject | |
---|---|---|---|
Next Message | Ross J. Reedstrom | 2001-11-15 17:29:41 | Re: problem: index on number not honoured |
Previous Message | Bruce Momjian | 2001-11-15 16:39:16 | Re: [DOCS] Use of 'now' |
From | Date | Subject | |
---|---|---|---|
Next Message | Ross J. Reedstrom | 2001-11-15 17:29:41 | Re: problem: index on number not honoured |
Previous Message | Roland Roberts | 2001-11-15 16:49:12 | PL/pgSQL examples NOT involving functions |