Re: Completing PL support for Event Triggers

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Completing PL support for Event Triggers
Дата
Msg-id 1380673807.22785.15.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Completing PL support for Event Triggers  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Список pgsql-hackers
On Fri, 2013-09-13 at 22:40 +0200, Dimitri Fontaine wrote:
> Please find attached to this email three patches covering the missing PL
> support for Event Triggers: pltcl, plperl and plpython.

For plperl, the previous reviews mostly apply analogously.  In addition,
I have these specific points:

- In plperl_event_trigger_build_args(), the hv_ksplit() call is probably
unnecessary.

- plperl_call_perl_event_trigger_func and plperl_call_perl_trigger_func
as well as plperl_event_trigger_handler and plperl_trigger_handler have
a lot of overlap could perhaps be combined or refactored differently.

- In plperl_event_trigger_handler(), a point is being made about setting
up current_call_data before SPI_connect.  Other handler functions don't
do this, though.  It's not quite clear to me on first readong why it's
done differently here.

- Like I pointed out for the pltcl patch, calling trigger functions as
event triggers and vice versa is not detected in
compile_plperl_function, but I guess this can only happen if you
manually butcher the function after you have set up the trigger.




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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: pg_stat_statements: calls under-estimation propagation
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [PATCH] Revive line type