pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Randy Neumann <Randy_Neumann@centralref.com>
To: Greg Stark <gsstark@mit.edu>
Cc: pgsql-performance@postgresql.org
Subject: Re: optimizer picks smaller table to drive nested loops?
Date: Mon, 7 Jul 2003 14:58:54 -0600
Message-ID: <200307072115.PAA52502@mail.simn.com> (raw)
In-Reply-To: <873chi2o53.fsf@stark.dyndns.tv>
References: <873chi2o53.fsf@stark.dyndns.tv>

On Monday 07 July 2003 12:22 pm, you wrote:

> loops=1) ->  Seq Scan on region  (cost=0.00..2813.00 rows=2767 width=104)
> (actual time=0.03..123.44 rows=2767 loops=2) Total runtime: 566.24 msec
> (9 rows)
>
> (I'm also a bit puzzled why the optimizer is calculating that 2,813 * 2 =
> 5,534)

You should read it 2767 (rows) * 2 = 5534 (rows)
2813.00 is part of the cost.



view thread (6+ messages)  latest in thread

Message-ID: <200307072115.PAA52502@mail.simn.com>
Permalink:  ../200307072115.PAA52502@mail.simn.com/
Also on:    postgresql.org/message-id/200307072115.PAA52502@mail.simn.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 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-performance@postgresql.org
  Cc: Randy_Neumann@centralref.com, gsstark@mit.edu
  Subject: Re: optimizer picks smaller table to drive nested loops?
  In-Reply-To: <200307072115.PAA52502@mail.simn.com>
  References: <873chi2o53.fsf@stark.dyndns.tv> <200307072115.PAA52502@mail.simn.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