Re: JOIN performance - Mailing list pgsql-sql

From Dean Gibson (DB Administrator)
Subject Re: JOIN performance
Date
Msg-id 5.1.0.14.2.20040920213442.00ae4450@imaps.mailpen.net
Whole thread Raw
In response to Re: JOIN performance  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: JOIN performance  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
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.

To refresh your memory, there was this line in the VIEW (said VIEW being 
the subject of the LEFT JOIN):

cancel_date < expire_date AS canceled,

(cancel_date & expire_date are DATEs in the base view)

When I removed the above line from the VIEW, the performance problem 
disappeared.

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

-- Dean



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: JOIN performance
Next
From: Joe Conway
Date:
Subject: Re: PL/pgSQL multidimension (matrix) array in function