Re: Error handling in plperl and pltcl
От | Thomas Hallgren |
---|---|
Тема | Re: Error handling in plperl and pltcl |
Дата | |
Msg-id | thhal-04i2JAlFRcC4yUi8pxQkJIq22g0eQWZ@mailblocks.com обсуждение исходный текст |
Ответ на | Re: Error handling in plperl and pltcl (Richard Huxton <dev@archonet.com>) |
Список | pgsql-hackers |
Richard Huxton, > It feels more distinct to me. I'll grant you I'm only a sample size of > 1 though. Perhaps more distinct, but: - Using savepoints together with try/catch is not exactly an unknown concept. Try Google and you'll see a fair amount of examples advocating the approach that I suggest. - If I have to learn yet another new thing, I'd like to learn how to use savepoints since that knowledge can be used everywhere. - There's no such thing as a pgtry in the Tcl language (nor in any other language), thus you change the language as such. - Tcl code will look different depending on if it's client code or code residing in the backend. I.e. the construct is not portable. Then again, perhaps the Tcl bindings are very different anyway so that argument may be less important. For PL/Java it makes a lot of sense since the client and server implementation uses a common set of interfaces. Regards, Thomas Hallgren
В списке pgsql-hackers по дате отправления: