From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Andreas Seltenreich <seltenreich(at)gmx(dot)de> |
Cc: | Kevin Murphy <murphy(at)genome(dot)chop(dot)edu>, PostgreSQL general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: STL problem in stored procedures |
Date: | 2005-10-26 03:18:17 |
Message-ID: | 1163.1130296697@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Andreas Seltenreich <seltenreich(at)gmx(dot)de> writes:
> Tom Lane schrob:
>> And on top of that, what if the error was one that the backend can't
>> recover from except by a transaction abort? If some level of the C++
>> code thinks it can catch and recover from the error, you've left
>> things in a pretty bad state.
> Hmm, but if you replace "C++" with "C" and "catch" with "PG_TRY" in
> that sentence, wouldn't that be business as usual?
Sure, but one hopes that someone writing PG_TRY is clued-in enough to
consider this issue. The thing that is worrying me here is that generic
STL code written by someone who never heard of Postgres is going to try
to make decisions about whether it can recover from an error thrown by
some part of the backend.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Troy | 2005-10-26 03:43:36 | Re: How to use LIKE and $1 in a function ? |
Previous Message | Joshua D. Drake | 2005-10-25 23:59:34 | Re: Map of Postgresql Users (OT) |