pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steinar H. Gunderson <sgunderson@bigfoot.com>
To: pgsql-performance@postgresql.org
Subject: Re: zero performance on query
Date: Wed, 26 Oct 2005 12:30:51 +0200
Message-ID: <20051026103051.GB1742@uio.no> (raw)
In-Reply-To: <BAY23-F12AC56187BE1C2D1BAA64DCE690@phx.gbl>
References: <BAY23-F12AC56187BE1C2D1BAA64DCE690@phx.gbl>

On Tue, Oct 25, 2005 at 10:26:43PM -0600, Sidar López Cruz wrote:
> look at this:
> select count(*) from fotos where archivo not in (select archivo from 
> archivos)
> Aggregate  (cost=4899037992.36..4899037992.37 rows=1 width=0)
> ->  Seq Scan on fotos  (cost=22598.78..4899037338.07 rows=261716 width=0)
>       Filter: (NOT (subplan))
>       SubPlan
>         ->  Materialize  (cost=22598.78..39304.22 rows=805344 width=58)
>               ->  Seq Scan on archivos  (cost=0.00..13141.44 rows=805344 
> width=58)

Now, this is interesting; it seems to trigger exactly the same oddity as my
query did (at least one of them; the materialized sequential scan).

/* Steinar */
-- 
Homepage: http://www.sesse.net/



view thread (5+ messages)  latest in thread

Message-ID: <20051026103051.GB1742@uio.no>
Permalink:  ../20051026103051.GB1742@uio.no/
Also on:    postgresql.org/message-id/20051026103051.GB1742@uio.no

 · 

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: sgunderson@bigfoot.com
  Subject: Re: zero performance on query
  In-Reply-To: <20051026103051.GB1742@uio.no>

* 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