Re: plpgsql function startup-time improvements

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: plpgsql function startup-time improvements
Дата
Msg-id 9cc4864a-a777-04ff-e8b4-5f60254906c5@2ndquadrant.com
обсуждение исходный текст
Ответ на plpgsql function startup-time improvements  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 12/27/17 15:38, Tom Lane wrote:
> It seems possible that the "promise" technique could be useful for
> other plpgsql special variables in future.  I thought briefly about
> applying it to triggers' NEW and OLD arguments, but desisted because
> (a) it's only a win if triggers will commonly not touch the variable,
> which seems unlikely to be true for NEW/OLD; and (b) it would have
> required infrastructure for attaching a promise to a DTYPE_REC
> variable, which was more pain than I wanted.  But I wonder if it'd
> be useful for, say, the special variables that exception blocks create.

This might be useful for instantiating virtual generated column values
in AFTER triggers on demand.  Although this would require promises on
record *fields*.  Anyway, it's useful infrastructure, and could have
more uses.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Contributing with code
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] taking stdbool.h into use