Re: [HACKERS] Adding new output parameter of pg_stat_statements toidentify operation of the query.

Поиск
Список
Период
Сортировка
От Tsunakawa, Takayuki
Тема Re: [HACKERS] Adding new output parameter of pg_stat_statements toidentify operation of the query.
Дата
Msg-id 0A3221C70F24FB45833433255569204D1F6A3853@G01JPEXMBYT05
обсуждение исходный текст
Ответ на [HACKERS] Adding new output parameter of pg_stat_statements to identify operation of the query.  (<husttripper@vip.sina.com>)
Ответы Re: [HACKERS] Adding new output parameter of pg_stat_statements toidentify operation of the query.  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
[HACKERS] 答复: [HACKERS] Adding new output parameter of pg_stat_statements toidentify operation of the query.(Internet mail)  (jasonysli(李跃森) <jasonysli@tencent.com>)
Список pgsql-hackers
From: pgsql-hackers-owner@postgresql.org
> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of
> husttripper@vip.sina.com
>          When using pg_stat_statements to collect running SQL of PG, we
> find it is hard for our program to get exact operation type of the SQL,
> such as SELECT, DELETE, UPDATE, INSERT, and so on.
>    So we modify the the source code of pg_stat_statements and add another
> output parameter to tell us the operation type.
> Of course some application know their operation type, but for us and many
> public databases, doing this is hard.
> The only way is to reparse the SQL, obviously it is too expensive for a
> monitoring or diagnosis system.
> We have done the job and are willing to post a patch.
> I sent one through my work mail, but it seems that my mail didn't reach
> the maillist, so I try again by using my personal mail account.

A view for counting the number of executions per operation type is being developed for PostgreSQL 10, which is expected
tobe released this year.
 

https://commitfest.postgresql.org/13/790/

Would this fit your need?  If not, what's the benefit of getting the operation type via pg_stat_statements?

Regards
Takayuki Tsunakawa






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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: [HACKERS] Parallel bitmap heap scan
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] case_preservation_and_insensitivity = on