Re: pg_stat_statements: duplicated external query texts with MSY2

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: legrand legrand <legrand_legrand(at)hotmail(dot)com>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: pg_stat_statements: duplicated external query texts with MSY2
Date: 2020-06-11 07:21:28
Message-ID: CAOBaU_bzpLSMK2APN7Tkcw+G=6Pqjco-95vqvtCaS-8s97Dndg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello,

On Mon, Jun 8, 2020 at 11:28 PM legrand legrand
<legrand_legrand(at)hotmail(dot)com> wrote:
>
> Hello,
>
> I met a stange behavior with testing pg_stat_statements (default setup) with pgbench on my MSYS2 build
> (PostgreSQL 13beta1 on x86_64-w64-mingw32, compiled by x86_64-w64-mingw32-gcc.exe (Rev2, Built by MSYS2 project) 9.2.0, 64-bit).
>
> pgbench -i postgres
> pgbench -c20 -t5 postgres
>
> generates the attached pgss_query_texts.stat,
> where "BEGIN" and "UPDATE pgbench_accounts SET abalance = abalance + $1 WHERE aid = $2"
> appears 20 times ...
>
> It does not seem to appear on linux, and I'm not able to juge if its specific to this port, and if its always limited ...

Is the duplication only in the query text file? Looking at the code
the query text part is stored holding a shared lwlock, so it seems
like an expected behavior (less overhead but might store duplicated
query text)

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2020-06-11 08:27:36 Re: BUG #16484: pg_regress fails with --outputdir parameter
Previous Message PG Bug reporting form 2020-06-11 06:48:20 BUG #16490: We cannot able to access production database remotely