Re: Error handling in plperl and pltcl

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Error handling in plperl and pltcl
Дата
Msg-id 342.1100912081@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Error handling in plperl and pltcl  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Error handling in plperl and pltcl
Re: Error handling in plperl and pltcl
Список pgsql-hackers
Thomas Hallgren <thhal@mailblocks.com> writes:
> My approach with PL/Java is a bit different. While each SPI call is 
> using a try/catch they are not using a subtransaction. The catch will 
> however set a flag that will ensure two things:

> 1. No more calls can be made from PL/Java to the postgres backend.
> 2. Once PL/Java returns, the error will be re-thrown.

That's what pltcl has always done, and IMHO it pretty well sucks :-(
it's neither intuitive nor useful.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: OpenBSD/Sparc status
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Error handling in plperl and pltcl