Re: proposal - plpgsql unique statement id

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: proposal - plpgsql unique statement id
Дата
Msg-id 5cdd1c59-42e1-be1e-ad5f-9620c4566e93@2ndquadrant.com
обсуждение исходный текст
Ответ на proposal - plpgsql unique statement id  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: proposal - plpgsql unique statement id  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
On 13/11/2018 14:35, Pavel Stehule wrote:
> I am try to enhance plpgsql_check about profiler functionality and I
> have to solve how to identify every plpgsql statement across different
> sessions. There is lineno, but surely it should not be unique. I propose
> introduce stmtid to every statement structure. This number will be
> unique inside function.

That seems reasonable enough, although I wouldn't use 0 as a valid stmtid.

A documenting comment near PLpgSQL_stmt might be nice.

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


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: don't create storage when unnecessary
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: proposal: plpgsql pragma statement