Re: Query_id is not being populated for all the pids

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: Query_id is not being populated for all the pids
Дата
Msg-id 8f64b4cb-c983-4dfa-b937-a3bda6729f94@ewie.name
обсуждение исходный текст
Ответ на Query_id is not being populated for all the pids  (Teja Jakkidi <teja.jakkidi05@gmail.com>)
Список pgsql-admin
On 2024-05-20 21:48 +0200, Teja Jakkidi wrote:
> When we query pg_stat_statements in Postgres, it has a column
> “query_id” which is not having any value for most of the sessions. 
> 
> Compute_query_id is set to AUTO
> 
> Can someone please help me understand why the query_id is missing most
> of the sessions and how is it populated in the background?

Are you using PgJDBC or the extended query protocol?

This reminds me of this thread:
https://www.postgresql.org/message-id/flat/CA%2B427g8qBArPuqwZOuYVhdoCQUsdbutR18fG7Gt7%2B3JunuHsjA%40mail.gmail.com

That was about pg_stat_activity, though.  But the key take-away was that
query_id is not computed in the extended query protocol which is used by
PgJDBC.

-- 
Erik



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

Предыдущее
От: Teja Jakkidi
Дата:
Сообщение: Query_id is not being populated for all the pids
Следующее
От: Ron Johnson
Дата:
Сообщение: Comments in .pgpass file...