pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Clive Page <cgp@star.le.ac.uk>
Cc: pgsql-performance@postgresql.org
Subject: Re: Spatial join insists on sequential scan of larger table
Date: Fri, 02 Apr 2004 10:46:26 -0500
Message-ID: <27943.1080920786@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0404021540020.2713-100000@peneca.star.le.ac.uk>
References: <Pine.LNX.4.44L0.0404021540020.2713-100000@peneca.star.le.ac.uk>

Clive Page <cgp@star.le.ac.uk> writes:
> This executes, it need hardly be said, a whole lot faster.

Could we see EXPLAIN ANALYZE output?

The estimated costs for the two cases are nearly the same, which says to
me that there's something wrong with the cost model for r-tree lookups,
but I don't know what it is.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <27943.1080920786@sss.pgh.pa.us>
Permalink:  ../27943.1080920786@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27943.1080920786@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, cgp@star.le.ac.uk
  Subject: Re: Spatial join insists on sequential scan of larger table
  In-Reply-To: <27943.1080920786@sss.pgh.pa.us>

* 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