From: | Erik Wienhold <ewie(at)ewie(dot)name> |
---|---|
To: | Teja Jakkidi <teja(dot)jakkidi05(at)gmail(dot)com> |
Cc: | pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Query_id is not being populated for all the pids |
Date: | 2024-05-20 21:17:06 |
Message-ID: | 8f64b4cb-c983-4dfa-b937-a3bda6729f94@ewie.name |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Johnson | 2024-05-21 01:01:45 | Comments in .pgpass file... |
Previous Message | Teja Jakkidi | 2024-05-20 19:48:19 | Query_id is not being populated for all the pids |