pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jen Sale <js@slipt.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Desperate: View not using indexes (very slow)
Date: Sun, 29 Jan 2006 22:50:58 -0500
Message-ID: <25261.1138593058@sss.pgh.pa.us> (raw)
In-Reply-To: <200601251109.25876.js@slipt.net>
References: <200601251109.25876.js@slipt.net>

Jen Sale <js@slipt.net> writes:
> can someone please tell me what we did wrong?

Joins against union subqueries aren't handled very well at the moment.
(As it happens, I'm working on that exact problem right now for 8.2,
but that won't help you today.)

The plan indicates that you are using UNION rather than UNION ALL,
which is not helping any.  Do you really need duplicate elimination
in that view?

			regards, tom lane



view thread (2+ messages)

Message-ID: <25261.1138593058@sss.pgh.pa.us>
Permalink:  ../25261.1138593058@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25261.1138593058@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, js@slipt.net
  Subject: Re: Desperate: View not using indexes (very slow)
  In-Reply-To: <25261.1138593058@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