pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jake Magner <jakemagner90@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: Merge Join chooses very slow index scan
Date: Thu, 19 Mar 2015 00:04:10 -0700 (MST)
Message-ID: <1426748650278-5842527.post@n5.nabble.com> (raw)
In-Reply-To: <CAFj8pRBqBTfP+bhatA103WzYv5Mcik7CLQhCtT4HGCCrkr_WTA@mail.gmail.com>
References: <1426746214298-5842523.post@n5.nabble.com>
	<CAFj8pRBqBTfP+bhatA103WzYv5Mcik7CLQhCtT4HGCCrkr_WTA@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

random_page_cost = 4
seq_page_cost = 1

Regardless of the the choice to use the index scan and random access to the
rows, how come in the second query with the freq > -1 condition, it accesses
far fewer pages with the same index scan even though no rows are filtered
out?

Thanks



--
View this message in context: http://postgresql.nabble.com/Merge-Join-chooses-very-slow-index-scan-tp5842523p5842527.html
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (7+ messages)  latest in thread

Message-ID: <1426748650278-5842527.post@n5.nabble.com>
Permalink:  ../1426748650278-5842527.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1426748650278-5842527.post@n5.nabble.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: jakemagner90@gmail.com
  Subject: Re: Merge Join chooses very slow index scan
  In-Reply-To: <1426748650278-5842527.post@n5.nabble.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