pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Jamie Thompson <jthompson.neuk@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Please help! Query jumps from 1s -> 4m
Date: Mon, 4 May 2020 14:12:01 -0500
Message-ID: <20200504191201.GU28974@telsasoft.com> (raw)
In-Reply-To: <CABoe=cQQtDyXFcjo3iAg1Va=xdseQeTBgoezoLLLG77cU5rviA@mail.gmail.com>
References: <CABoe=cR9s8MvCM9iHZajUL42E0mJXttUqRdsR_GXr4MRjD6YCw@mail.gmail.com>
	<20200503153825.GK28974@telsasoft.com>
	<CABoe=cQQtDyXFcjo3iAg1Va=xdseQeTBgoezoLLLG77cU5rviA@mail.gmail.com>

On Mon, May 04, 2020 at 08:07:07PM +0100, Jamie Thompson wrote:
> Additionally, the execution plans for the 10th + following queries look
> fine, they have the same structure as if I run the query manually. It's not
> that the query plan switches, it seems as though the same query plan is
> just > 200X slower than usual.

Are you able to reproduce the problem manually ?

With/without PREPARE ?
https://www.postgresql.org/docs/current/sql-prepare.html

-- 
Justin





view thread (11+ messages)  latest in thread

Message-ID: <20200504191201.GU28974@telsasoft.com>
Permalink:  ../20200504191201.GU28974@telsasoft.com/
Also on:    postgresql.org/message-id/20200504191201.GU28974@telsasoft.com

 · 

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: pgsql-performance@postgresql.org
  Cc: pryzby@telsasoft.com, jthompson.neuk@gmail.com
  Subject: Re: Please help! Query jumps from 1s -> 4m
  In-Reply-To: <20200504191201.GU28974@telsasoft.com>

* 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