pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Issue executing query from container
Date: Fri, 30 Oct 2020 11:45:18 +0100
Message-ID: <20201030104518.GA29818@hjp.at> (raw)
In-Reply-To: <CANEx+AXSzuf4wPeNHTcVg29EFhHarwMEnMgYHbrbJgdmHTENoA@mail.gmail.com>
References: <CANEx+AWsQETay6WmKUw=8HPZ3L9bvk1AveF5wrOQD+tAPyN3WA@mail.gmail.com>
	<2961873.1594763498@sss.pgh.pa.us>
	<CANEx+AW1zPOXaobpcbh6DPxbRdFFJrhbXgbxNpA51YfnjhHrGQ@mail.gmail.com>
	<3065070.1594824162@sss.pgh.pa.us>
	<CANEx+AWCh57b8QggrxKkLoZ5MJtuAYbKAgnTCdNkmL3h0JHJfQ@mail.gmail.com>
	<CANEx+AXSzuf4wPeNHTcVg29EFhHarwMEnMgYHbrbJgdmHTENoA@mail.gmail.com>

On 2020-10-27 17:46:59 +0100, Eudald ValcĂ rcel Lacasa wrote:
> I've run the automated script several times, and the duration of the
> query is widely variable.
> 

[0.005 s vs. 1500 s for the same plan]

> As you can see, they don't seem to differ between each other, but the
> duration is abismaly different.
> I have the database logging everything, what should I look for so that
> it can help me understand this strange behavior?

You might want to turn auto_explain.log_analyze and
auto_explain.log_buffers on. You probably should do this only on a test
system, not the production system as the manual states that
auto_explain.log_analyze "can have an extremely negative impact on
performance".

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (8+ messages)

Message-ID: <20201030104518.GA29818@hjp.at>
Permalink:  ../20201030104518.GA29818@hjp.at/
Also on:    postgresql.org/message-id/20201030104518.GA29818@hjp.at

 · 

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: hjp-pgsql@hjp.at
  Subject: Re: Issue executing query from container
  In-Reply-To: <20201030104518.GA29818@hjp.at>
  References: <CANEx+AWsQETay6WmKUw=8HPZ3L9bvk1AveF5wrOQD+tAPyN3WA@mail.gmail.com> <2961873.1594763498@sss.pgh.pa.us> <CANEx+AW1zPOXaobpcbh6DPxbRdFFJrhbXgbxNpA51YfnjhHrGQ@mail.gmail.com> <3065070.1594824162@sss.pgh.pa.us> <CANEx+AWCh57b8QggrxKkLoZ5MJtuAYbKAgnTCdNkmL3h0JHJfQ@mail.gmail.com> <CANEx+AXSzuf4wPeNHTcVg29EFhHarwMEnMgYHbrbJgdmHTENoA@mail.gmail.com> <20201030104518.GA29818@hjp.at>

* 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