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?