Re: proposal: enhancing plpgsql debug API - returns text value of variable content

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: proposal: enhancing plpgsql debug API - returns text value of variable content
Дата
Msg-id 839117.1648761153@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: proposal: enhancing plpgsql debug API - returns text value of variable content  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: proposal: enhancing plpgsql debug API - returns text value of variable content
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I am sending updated patch

After studying the list of exposed functions for awhile, it seemed
to me that we should also expose exec_assign_value.  The new pointers
allow a plugin to compute a value in Datum+isnull format, but then it
can't do much of anything with it: exec_assign_expr is a completely
inconvenient API if what you want to do is put a specific Datum
value into a variable.  Adding exec_assign_value provides "store"
and "fetch" APIs that are more or less inverses, which should be
easier to work with.

So I did that and pushed it.

            regards, tom lane



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: unlogged sequences
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Commitfest closing