public inbox for [email protected]  
help / color / mirror / Atom feed
From: Greg Sabino Mullane <[email protected]>
To: arun chirappurath <[email protected]>
Cc: [email protected]
Subject: Re: Execution history of a single query
Date: Fri, 17 May 2024 13:23:09 -0400
Message-ID: <CAKAnmmLUNqcdt=koFQD9PBRRX5Q=8VCFXpV47oNN1fJdfkYzKQ@mail.gmail.com> (raw)
In-Reply-To: <CAA23SdsOB8RSGAXHH-f1pZ76EaWNuSy2FUvmaBqVSaPJqzi1FQ@mail.gmail.com>
References: <CAA23SdsOB8RSGAXHH-f1pZ76EaWNuSy2FUvmaBqVSaPJqzi1FQ@mail.gmail.com>

Not directly through pg_stat_statements, no. But you can:

* Use log_min_duration_statement to spy on individual runs
* Periodically copy pg_stat_statements to another table, reset the stats,
and then you have some time-based buckets to play with.

Cheers,
Greg


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], [email protected], [email protected]
  Subject: Re: Execution history of a single query
  In-Reply-To: <CAKAnmmLUNqcdt=koFQD9PBRRX5Q=8VCFXpV47oNN1fJdfkYzKQ@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