Skipping PgStat_FunctionCallUsage for many expressions

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Skipping PgStat_FunctionCallUsage for many expressions
Дата
Msg-id 20161126041236.wtmn23zjcfsil6mw@alap3.anarazel.de
обсуждение исходный текст
Ответы Re: Skipping PgStat_FunctionCallUsage for many expressions
Список pgsql-hackers
Hi,

while working on my faster expression evaluation stuff I noticed that a
lot of expression types that call functions don't call the necessary
functions to make track_functions work.

ExecEvalFunc/ExecEvalOper (via ExecMakeFunctionResultNoSets) call
pgstat_init_function_usage/pgstat_end_function_usage, but others like
ExecEvalRowCompare, ExecEvalMinMax, ExecEvalNullIf, ExecEvalDistinct,
ExecEvalScalarArrayOp (and indirectly ExecEvalArrayCoerceExpr) don't.

Similarly InvokeFunctionExecuteHook isn't used very thoroughly.

Are these worth fixing? I suspect yes. If so, do we want to backpatch?

- Andres



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: make default TABLESPACE belong to target table.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: macaddr 64 bit (EUI-64) datatype support