Performance of plpgsql with exception handlers

Поиск
Список
Период
Сортировка
От Walker, Jed S
Тема Performance of plpgsql with exception handlers
Дата
Msg-id 4A59B6AA01F1874283EA66C976ED51FC0E1A6B@COENGEXCMB01.cable.comcast.com
обсуждение исходный текст
Ответы Re: Performance of plpgsql with exception handlers  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice

The documentation states "A block containing an EXCEPTION clause is significantly more expensive to enter and exit than a block without one. Therefore, don't use EXCEPTION without need."

Our application developers would like to get back a simple code ( a number) for any error that indicates what it is, and possibly a message. So, as we would with Oracle we wanted to code in exception handlers to do this, but the documenation has us concerned. Is putting exception handlers into the pgsql code really a big performance hit?

Thanks,

      Jed S. Walker

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

Предыдущее
От: Sean
Дата:
Сообщение: Re: phppgadmin
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Performance of plpgsql with exception handlers