Re: Correct comment in ProcedureCreate() for pgstat_create_function() call.

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Correct comment in ProcedureCreate() for pgstat_create_function() call.
Дата
Msg-id Yn4EDN4ce27JIfn+@paquier.xyz
обсуждение исходный текст
Ответ на Re: Correct comment in ProcedureCreate() for pgstat_create_function() call.  (Amul Sul <sulamul@gmail.com>)
Ответы Re: Correct comment in ProcedureCreate() for pgstat_create_function() call.  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Fri, May 13, 2022 at 10:22:57AM +0530, Amul Sul wrote:
> Sorry, hit the send button too early :|

-   /* ensure that stats are dropped if transaction commits */
+   /* ensure that stats are dropped if transaction aborts */
    if (!is_update)
            pgstat_create_function(retval);

As of what pgstat_create_function() does to create the stats of a new
function in a transactional way, it looks like you are right.  Will
fix if there are no objections.
--
Michael

Вложения

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

Предыдущее
От: Mikael Kjellström
Дата:
Сообщение: Re: recovery test failure on morepork with timestamp mystery
Следующее
От: Aleksander Alekseev
Дата:
Сообщение: Re: [PATCH] Compression dictionaries for JSONB