From: Christian Ramseyer <rc@networkz.ch>
To: Frank Millman <frank@chagford.com>
To: pgsql-general@postgresql.org
Subject: Re: Slow SELECT
Date: Tue, 26 May 2020 12:02:59 +0200
Message-ID: <06c641a3-cd43-79f7-9e00-ed5d9f10028f@networkz.ch> (raw)
In-Reply-To: <0fb25867-78d2-d57f-134a-c3fccac7bbde@chagford.com>
References: <0fb25867-78d2-d57f-134a-c3fccac7bbde@chagford.com>
Hi
On 26.05.20 09:22, Frank Millman wrote:
>
> I have looked at the EXPLAIN, but I don't really know what to look for.
> I can supply it if that would help.
>
My favorite approach to tuning Postgres queries is:
1. Run EXPLAIN ANALYZE <query>
2. Copy/Paste the output into the fantastic https://explain.depesz.com/
This will turn the somewhat hard-to-understand explain output into a
nice colored structure. If it's not obvious from the orange-reddish
boxes where the slowness comes from, please post the link here and
somebody will certainly have some advice.
Cheers
Christian
--
Christian Ramseyer, netnea ag
Network Management. Security. OpenSource.
https://www.netnea.com
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: rc@networkz.ch, frank@chagford.com
Subject: Re: Slow SELECT
In-Reply-To: <06c641a3-cd43-79f7-9e00-ed5d9f10028f@networkz.ch>
References: <0fb25867-78d2-d57f-134a-c3fccac7bbde@chagford.com> <06c641a3-cd43-79f7-9e00-ed5d9f10028f@networkz.ch>
* 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