Correctly propagate queryId for utility stmt in function

Поиск
Список
Период
Сортировка
От Anthonin Bonnefoy
Тема Correctly propagate queryId for utility stmt in function
Дата
Msg-id CAO6_XqrGp-uwBqi3vBPLuRULKkddjC7R5QZCgsFren=8E+m2Sg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Correctly propagate queryId for utility stmt in function
Список pgsql-hackers
Hi,

For utility statements defined within a function, the queryTree is
copied to a plannedStmt as utility commands don't require planning.
However, the queryId is not propagated to the plannedStmt. This leads
to plugins relying on queryId like pg_stat_statements to not be able
to track utility statements within function calls.

This patch fixes the issue by correctly propagating queryId from the
cached queryTree to the plannedStmt.

Regards,
Anthonin

Вложения

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

Предыдущее
От: "Daniel Verite"
Дата:
Сообщение: Re: Built-in CTYPE provider
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Slow catchup of 2PC (twophase) transactions on replica in LR