From: James Inform <james.inform@pharmapp.de>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #17146: pg_dump statements are going into pg_stat_statements in 13.4
Date: Mon, 16 Aug 2021 11:48:49 +0200
Message-ID: <9586ada6-344e-ff26-8c16-6c847a984220@pharmapp.de> (raw)
In-Reply-To: <CAOBaU_Y7ds+tPpo2-ELLMb_7OdXkRKxxtpLAiUYUa+4O4KAzqw@mail.gmail.com>
References: <17146-fd449661169489e5@postgresql.org>
<CAOBaU_Y7ds+tPpo2-ELLMb_7OdXkRKxxtpLAiUYUa+4O4KAzqw@mail.gmail.com>
That's strange.
I see those copy commands it pg_stat_statments and they have 1 calls.
The backup job runs once a day since many months. I would expect to see
calls > 1 then.
So again very strange, but maybe a layer 8 problem :)
I will recheck.
Julien Rouhaud Wrote:
> On Mon, Aug 16, 2021 at 4:46 PM PG Bug reporting form
> <noreply@postgresql.org> wrote:
>> The following bug has been logged on the website:
>>
>> I have just updated to 13.4 and I have noticed that "COPY" statements that
>> are produced by pg_dump appear in pg_stat_statements view.
>>
>> You can imagine that the copy statements are slower than all my other
>> statements, so they come up as the first and most expensive statements in
>> pg_stat_statements.
> You could order by the average execution time rather than the total
> execution time and/or filter out queries executed less than X times,
> it's more likely to give you low hanging fruits.
>
>> This is a new behaviour in 13.4 and hasn't existed in 13.3 and prior.
> Nothing changed here for a long time.
>
>> Is there a setting to prevent this?
> You could disable pg_stat_statements.track_utility, but it obviously
> means that all utility statements will be ignored, not only COPY.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: james.inform@pharmapp.de, rjuju123@gmail.com
Subject: Re: BUG #17146: pg_dump statements are going into pg_stat_statements in 13.4
In-Reply-To: <9586ada6-344e-ff26-8c16-6c847a984220@pharmapp.de>
References: <17146-fd449661169489e5@postgresql.org> <CAOBaU_Y7ds+tPpo2-ELLMb_7OdXkRKxxtpLAiUYUa+4O4KAzqw@mail.gmail.com> <9586ada6-344e-ff26-8c16-6c847a984220@pharmapp.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox