public inbox for [email protected]  
help / color / mirror / Atom feed
From: Maksim Gorkov <[email protected]>
To: [email protected]
Subject: The same query_id for different queries
Date: Tue, 1 Jul 2025 10:24:14 +0300
Message-ID: <CA+mz3HiQYrYvvcbzV+mvXdAsEL31UkV_6RTgfcTdARMoOkEeWQ@mail.gmail.com> (raw)

Hi. I noticed that in pg_stat_activity different queries have the same
query_id.

SELECT query_id, query FROM pg_stat_activity WHERE query_id =
2064869707185898531

2064869707185898531;'BEGIN;...' -- the full text in query1.sql attachment
2064869707185898531;'COMMIT;'

there is another example, if required I can send it for review.

Why does this happen and how can it be fixed?


Attachments:

  [application/sql] query1.sql (3.2K, 3-query1.sql)
  download

view thread (3+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: The same query_id for different queries
  In-Reply-To: <CA+mz3HiQYrYvvcbzV+mvXdAsEL31UkV_6RTgfcTdARMoOkEeWQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox