Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query

Поиск
Список
Период
Сортировка
От Sergei Kornilov
Тема Re: New function pg_stat_statements_reset_query() to reset statistics of a specific query
Дата
Msg-id 11886611530520937@web27g.yandex.ru
обсуждение исходный текст
Ответ на Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query  (Haribabu Kommi <kommi.haribabu@gmail.com>)
Ответы Re: New function pg_stat_statements_reset_query() to reset statisticsof a specific query  (Haribabu Kommi <kommi.haribabu@gmail.com>)
Список pgsql-hackers
Hello

I found SELECT pg_stat_statements_reset(NULL,NULL,s.queryid) in tests and it pass tests, but i wonder how it works.
Shouldnot we check the NULL through PG_ARGISNULL macro before any PG_GETARG_*? According src/include/fmgr.h 
 
> * If function is not marked "proisstrict" in pg_proc, it must check for
> * null arguments using this macro.  Do not try to GETARG a null argument!

> pg_stat_statements_reset(userid Oid, dbid Oid, queryid bigint) returns void
And you forgot to change return type in docs (and description of return value)

regards, Sergei


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: branches_of_interest.txt
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Should contrib modules install .h files?