Re: errcontext support in PL/Perl

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: errcontext support in PL/Perl
Дата
Msg-id 12818.1253028753@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: errcontext support in PL/Perl  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: errcontext support in PL/Perl  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> But for extra credit, couldn't we code it so that the context is set
> before the PL handler is called, so that we get this functionality into
> all PLs at once?

FWIW, I don't particularly agree with that --- there is no reason to
suppose that all PLs will want to do this exactly the same way.  Even
if they did, the amount of code shared would only be a few lines.
It would likely end up being *more* code not less by the time you'd
found a way to do it in common (since e.g. the function caches would
not be the same for all PLs, if they even had one).
        regards, tom lane


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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Timestamp to time_t
Следующее
От: Devrim GÜNDÜZ
Дата:
Сообщение: Re: PGCluster-II Progress