Search Postgresql Archives

Re: pg_stat_statements has duplicate entries for the same query & queryId

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 19, 2025 at 09:07:35AM +0200, Daniel Verite wrote:
> That looks normal. The unicity to expect is on 
> (queryid, userid, dbid, toplevel).
> 
> From https://www.postgresql.org/docs/current/pgstatstatements.html :
> 
>   This view contains one row for each distinct combination of database
>   ID, user ID, query ID and whether it's a top-level statement or not
>   (up to the maximum number of distinct statements that the module can
>   track)

Yeah.  The uniqueness of the entries in the PGSS hash table is
enforced by pgssHashKey in pg_stat_statements.c.  Or an unknown bug
has been found, but there is no data proving that here.
--
Michael

Attachment: signature.asc
Description: PGP signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux