Re: Feature patch 1 for plperl [PATCH]

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Feature patch 1 for plperl [PATCH]
Дата
Msg-id 4891.1263169561@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Feature patch 1 for plperl [PATCH]  (Tim Bunce <Tim.Bunce@pobox.com>)
Список pgsql-hackers
Tim Bunce <Tim.Bunce@pobox.com> writes:
> I didn't get any significant feedback from the earlier draft so here's
> the finished 'feature patch 1' for plperl.  (This builds on my earlier
> plperl refactoring patch, and the follow-on ppport.h patch.)

Just looking over this patch, I don't think it's nearly robust enough
against initialization failures.  The original code wasn't very good
about that either, but that was (more or less) okay because it was
executing predetermined, pretested code that we really don't expect to
fail.  I think the standard has to be a *lot* higher if we are going to
execute user-supplied perl code there.  You need to make sure that
things are left in a reasonably consistent, safe state if an error
occurs.

Along the same line, there needs to be more effort put into the errors
that can be thrown when one of these failures happen.  The current
messages don't follow our style guidelines very well, and aren't exposed
for translation.
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: mailing list archiver chewing patches
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [PATCH] remove redundant ownership checks