pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wim Bertels <wim.bertels@ucll.be>
To: pgsql-general@lists.postgresql.org
Subject: Re: Capturing just slow queries
Date: Fri, 17 Jul 2020 10:14:28 +0200
Message-ID: <7641998463cb4bfaff549426d6f81a3d3f96188b.camel@ucll.be> (raw)
In-Reply-To: <CAB_W-NOT-XvBi02AkAZAyRgaNbtp5PPdpV3uYe3braUdTB9jzQ@mail.gmail.com>
References: <CAB_W-NOT-XvBi02AkAZAyRgaNbtp5PPdpV3uYe3braUdTB9jzQ@mail.gmail.com>

You might have a look at:
https://www.postgresql.org/docs/current/auto-explain.html

Also there are several monitoring solutions:
https://wiki.postgresql.org/wiki/Monitoring


Tiffany Thang schreef op do 16-07-2020 om 13:41 [-0400]:
> Hi,
> log_min_duration_statement captures all statements including DMLs
> that have exceeded the threshold. Is there a way in PG 12 to capture
> just select statements excluding all DMLs and DDLs? In my
> environment, it's acceptable for DMLs and DDLs to cross the threshold
> and we are more interested in capturing poor performing select
> statements. 
> 
> Thanks.
> 
> Tiff 
-- 
mvg,
Wim Bertels
--
Lector
UC Leuven-Limburg
--
There is no hunting like the hunting of man, and those who have hunted
armed men long enough and liked it, never care for anything else thereafter.
		-- Ernest Hemingway






view thread (3+ messages)  latest in thread

Message-ID: <7641998463cb4bfaff549426d6f81a3d3f96188b.camel@ucll.be>
Permalink:  ../7641998463cb4bfaff549426d6f81a3d3f96188b.camel@ucll.be/
Also on:    postgresql.org/message-id/7641998463cb4bfaff549426d6f81a3d3f96188b.camel@ucll.be

 · 

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 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-general@postgresql.org
  Cc: wim.bertels@ucll.be
  Subject: Re: Capturing just slow queries
  In-Reply-To: <7641998463cb4bfaff549426d6f81a3d3f96188b.camel@ucll.be>
  References: <CAB_W-NOT-XvBi02AkAZAyRgaNbtp5PPdpV3uYe3braUdTB9jzQ@mail.gmail.com> <7641998463cb4bfaff549426d6f81a3d3f96188b.camel@ucll.be>

* 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