Re: pg_stat_statements query jumbling question

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: pg_stat_statements query jumbling question
Дата
Msg-id CAM3SWZTjPdh+WHVmhsRGrpimWsdxMBcwXpP7ykybp+=2iapeEA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_stat_statements query jumbling question  (Satoshi Nagayasu <snaga@uptime.jp>)
Ответы Re: pg_stat_statements query jumbling question  (Satoshi Nagayasu <snaga@uptime.jp>)
Список pgsql-hackers
On Mon, Aug 31, 2015 at 9:29 PM, Satoshi Nagayasu <snaga@uptime.jp> wrote:
> BTW, I'm interested in improving the queryid portability now because
> I'd like to use it in other extensions. :)
> That's the reason why I'm looking at query jumbling here.

Are you interested in having the query fingerprinting/jumbling
infrastructure available to all backend code? That seems like a good
idea to me generally. I would like to be able to put queryId in
log_line_prefix, or to display it within EXPLAIN, and have it
available everywhere. I like the idea of per-query
log_min_duration_statement settings.

If you want to use the queryId field directly, which I recall you
mentioning before, then that's harder. There is simply no contract
among extensions for "owning" a queryId. But when the fingerprinting
code is moved into core, then I think at that point queryId may cease
to be even a thing that pg_stat_statements theoretically has the right
to write into. Rather, it just asks the core system to do the
fingerprinting, and finds it within queryId. At the same time, other
extensions may do the same, and don't need to care about each other.

Does that work for you?

-- 
Peter Geoghegan



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

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: WIP: About CMake v2
Следующее
От: Amit Kapila
Дата:
Сообщение: Speed up Clog Access by increasing CLOG buffers