Re: plpgsql plugin - stmt_beg/end is not called for top level blockof statements

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: plpgsql plugin - stmt_beg/end is not called for top level blockof statements
Дата
Msg-id 20181228075011.GA1457@paquier.xyz
обсуждение исходный текст
Ответ на Re: plpgsql plugin - stmt_beg/end is not called for top level blockof statements  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: plpgsql plugin - stmt_beg/end is not called for top level blockof statements  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Fri, Dec 28, 2018 at 07:57:45AM +0100, Pavel Stehule wrote:
> There is only one difference - the plugin routine stmt_begin and stmt_end
> is called for line 3. Nothing less, nothing more.

Thanks for the detailed explanation!  With your simple example it is
easy enough to see the difference, and indeed the callback stack is
more consistent the way you propose.

> Internal evaluation of plpgsql code is same - the change is only for plugin
> code - one more stmt_beg and stmt_end call - as expected and wanted.

Okay, that makes sense, now I got your point.  Perhaps somebody else
has an opinion to offer or has an objection with the proposed change?
--
Michael

Вложения

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

Предыдущее
От: Mitar
Дата:
Сообщение: Re: Feature: temporary materialized views
Следующее
От: Mitar
Дата:
Сообщение: Re: Feature: triggers on materialized views