| От | Mike Rylander |
|---|---|
| Тема | Re: Error handling in plperl and pltcl |
| Дата | |
| Msg-id | b918cf3d04120103462f40d696@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Error handling in plperl and pltcl (Thomas Hallgren <thhal@mailblocks.com>) |
| Список | pgsql-hackers |
On Wed, 01 Dec 2004 10:29:17 +0100, Thomas Hallgren
<thhal@mailblocks.com> wrote:
> Richard Huxton wrote:
>
> > But is the problem not that forgetting to use SAVEPOINT can get us in
> > trouble with clearing up after an exception?
>
> I fail to see how that's different from forgetting to use pgtry instead
> of try.
I see that as a non-starter. At least in the case of perl, we can
actually hide pgeval behind the standard eval. If pgeval were
equivelant to, say, 'savepoint("foo"); CORE::eval @_;' then the onus
is still on the developer to use 'eval', but that is a familiar
concept to defensive developers.
--
Mike Rylander
mrylander@gmail.com
GPLS -- PINES Development
Database Developer
http://open-ils.org
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера