Skip site navigation (1) Skip section navigation (2)

Re: Different topic

From: "Dean Gibson (DB Administrator)" <postgresql3(at)ultimeth(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Different topic
Date: 2004-09-21 16:19:36
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
Ok, this is the third time I've sent this eMail;  the other two times the 
mail was accepted (as shown by my postfix logs), but never appeared on the 
list.  So, this time I've changed the subject field (was JOIN performance):

Tom Lane wrote on 2004-09-20 22:19:
>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.

OK, well you dragged me kicking and screaming into writing and 'end_date' 
function (IMMUTABLE but non-STRICT).  I then use that in the JOINed VIEW 
(and other strategic places) rather than in the subject of the LEFT JOIN, 
and that works with no performance problems.

Since we mentioned PostgreSQL versions, one of the things I'd like to see 
in v8.0 is support for "DELETE FROM ... AS ..." and "UPDATE ... AS 
...".  For example, I need to do things like:

DELETE FROM xxx AS x WHERE field > xxx.field;

In other words, a DELETE that has criteria similar to a self JOIN.

Right now, I do this via:


DELETE FROM xxx WHERE field > yyy.field;

And that works fine.

But it's probably too late for v8.0 ...

-- Dean

pgsql-sql by date

Next:From: CHRIS HOOVERDate: 2004-09-21 16:44:00
Subject: raise is not working
Previous:From: Dean Gibson (DB Administrator)Date: 2004-09-21 15:53:38
Subject: Re: Difference in DATEs

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group