Re: proposal - plpgsql unique statement id

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: proposal - plpgsql unique statement id
Дата
Msg-id CAFj8pRABrydkhnmxr00LDC0w-_4g2JGhYzJ+qRMk4M-mqJ0LbA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: proposal - plpgsql unique statement id  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: proposal - plpgsql unique statement id  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers


pá 4. 1. 2019 v 13:58 odesílatel Peter Eisentraut <peter.eisentraut@2ndquadrant.com> napsal:
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.

done


A documenting comment near PLpgSQL_stmt might be nice.

 done

Regards

Pavel


--
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Вложения

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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Allow auto_explain to log to NOTICE
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: Delay locking partitions during query execution