pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dean Gibson (DB Administrator) <postgresql3@ultimeth.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: JOIN performance
Date: Tue, 21 Sep 2004 01:19:33 -0400
Message-ID: <25938.1095743973@sss.pgh.pa.us> (raw)
In-Reply-To: <5.1.0.14.2.20040920213442.00ae4450@imaps.mailpen.net>
References: <5.1.0.14.2.20040920182022.00adf5e8@imaps.mailpen.net>
	<5.1.0.14.2.20040920164348.00a99868@imaps.mailpen.net>
	<5.1.0.14.2.20040920121606.00a89c68@imaps.mailpen.net>
	<414F02FF.8000603@numerixtechnology.de>
	<414F02FF.8000603@numerixtechnology.de>
	<5.1.0.14.2.20040920121606.00a89c68@imaps.mailpen.net>
	<5.1.0.14.2.20040920164348.00a99868@imaps.mailpen.net>
	<5.1.0.14.2.20040920182022.00adf5e8@imaps.mailpen.net>
	<5.1.0.14.2.20040920213442.00ae4450@imaps.mailpen.net>

"Dean Gibson (DB Administrator)" <postgresql3@ultimeth.com> writes:
> It turns out that even when I removed the CASE statement from the VIEW, the 
> performance problem remained.  I had to remove the conditional as well from 
> the VIEW.

> cancel_date < expire_date AS canceled,

Yuck :-(

> Do you know why?  I'm running 7.3.4, by the way.

7.3 is even stupider than 7.4, is why ...

In 7.3 only a view whose targetlist consists of simple column references
can be pulled up into the nullable side of an outer join.

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <25938.1095743973@sss.pgh.pa.us>
Permalink:  ../25938.1095743973@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25938.1095743973@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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, postgresql3@ultimeth.com
  Subject: Re: JOIN performance
  In-Reply-To: <25938.1095743973@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