[PL/PgSQL] error checks vs error trapping

Поиск
Список
Период
Сортировка
От Vincenzo Romano
Тема [PL/PgSQL] error checks vs error trapping
Дата
Msg-id AANLkTin5VvhRj-86MQ8RLGdgowRJZ+i3FgNc5zaYodfG@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
Hi all.
It's not clear to me whether it's faster to check error conditions
before actually executing some
statements or to add error trapping code to "react" to errors.

The documentation states that the former should be faster than the
latter. Which is more or less
the same as I can experience in C++ with try/catch constructs.
But from time to time I read something on this very mailing list that
makes me think the reality is
different.

Is there any authoritative, and possibly proven, answer to this topic?

--
Vincenzo Romano at NotOrAnd Information Technologies
Software Hardware Networking Training Support Security
--
NON QVIETIS MARIBVS NAVTA PERITVS

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