Is this still true?

Started by Joseph Shraibmanalmost 26 years ago4 messagesgeneral
Jump to latest
#1Joseph Shraibman
jks@selectacast.net

http://www.postgresql.org/docs/faq-english.html#4.23 Is this a leftover
from previous versions of postgres or is this still true for 7.0?

#2Bruce Momjian
bruce@momjian.us
In reply to: Joseph Shraibman (#1)
Re: Is this still true?

http://www.postgresql.org/docs/faq-english.html#4.23 Is this a leftover
from previous versions of postgres or is this still true for 7.0?

Still true in 7.0.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#3Mike Mascari
mascarm@mascari.com
In reply to: Bruce Momjian (#2)
Re: Is this still true?

Bruce Momjian wrote:

http://www.postgresql.org/docs/faq-english.html#4.23 Is this a leftover
from previous versions of postgres or is this still true for 7.0?

Still true in 7.0.

Gee. Shouldn't 4.24 use the advice above in 4.23?

I.E., shouldn't it read:

SELECT tab1.col1, tab2.col2
FROM tab1, tab2
WHERE tab1.col1 = tab2.col1
UNION ALL
SELECT tab1.col1, NULL
FROM tab1
WHERE tab1.col1 NOT EXISTS
(SELECT tab2.col1 FROM tab2 WHERE tab1.col1 = tab2.col1)
ORDER BY tab1.col1

Mike Mascari

#4Bruce Momjian
bruce@momjian.us
In reply to: Mike Mascari (#3)
Re: Is this still true?

Bruce Momjian wrote:

http://www.postgresql.org/docs/faq-english.html#4.23 Is this a leftover
from previous versions of postgres or is this still true for 7.0?

Still true in 7.0.

Gee. Shouldn't 4.24 use the advice above in 4.23?

I.E., shouldn't it read:

SELECT tab1.col1, tab2.col2
FROM tab1, tab2
WHERE tab1.col1 = tab2.col1
UNION ALL
SELECT tab1.col1, NULL
FROM tab1
WHERE tab1.col1 NOT EXISTS
(SELECT tab2.col1 FROM tab2 WHERE tab1.col1 = tab2.col1)
ORDER BY tab1.col1

Yes, but it seems too confusing to mix them. We really need both those
features added to PostgreSQL.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026