From: Justin Pryzby <pryzby@telsasoft.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Scott Marlowe <scott.marlowe@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: explain analyze output: 0 rows, 1M loops
Date: Wed, 1 Nov 2017 14:25:25 -0500
Message-ID: <20171101192525.GR21735@telsasoft.com> (raw)
In-Reply-To: <CAKFQuwZ2HDDP+78CAytgZ0hsDa-7AjVuur_-FDVY8TWKLCLgCQ@mail.gmail.com>
References: <CAOR=d=30NGEG=j6k4khHm59OG-Rg346AXmNN5yb6d4w1sT0bnw@mail.gmail.com>
<CAKFQuwZ2HDDP+78CAytgZ0hsDa-7AjVuur_-FDVY8TWKLCLgCQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
On Wed, Nov 01, 2017 at 12:19:21PM -0700, David G. Johnston wrote:
> On Wed, Nov 1, 2017 at 11:59 AM, Scott Marlowe <scott.marlowe@gmail.com>
> wrote:
>
> > So some of my output from an explain analyze here has a line that says
> > this:
> >
> > ex Scan using warranty_order_item_warranty_order_id_idx on
> > warranty_order_item woi_1 (cost=0.57..277.53 rows=6 width=137) (actual
> > time=0.110..0.111 rows=0 loops=1,010,844)
> >
>
> Not my strong suit but, I'm pretty sure that reads: "The index was queried
> 1M+ times and none of those inqueries resulted in a record being found".
> IIUC I'd be wondering why some form of hash join wasn't used...
Except that:
https://www.postgresql.org/docs/current/static/using-explain.html
"... the loops value reports the total number of executions of the node, and
the actual time and ROWS VALUES SHOWN ARE AVERAGES PER-EXECUTION."
Justin
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
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: pryzby@telsasoft.com, david.g.johnston@gmail.com, scott.marlowe@gmail.com
Subject: Re: explain analyze output: 0 rows, 1M loops
In-Reply-To: <20171101192525.GR21735@telsasoft.com>
References: <CAOR=d=30NGEG=j6k4khHm59OG-Rg346AXmNN5yb6d4w1sT0bnw@mail.gmail.com> <CAKFQuwZ2HDDP+78CAytgZ0hsDa-7AjVuur_-FDVY8TWKLCLgCQ@mail.gmail.com> <20171101192525.GR21735@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