Re: [HACKERS] Oops, I seem to have changed UNION's behavior

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: [HACKERS] Oops, I seem to have changed UNION's behavior
Дата
Msg-id 3735A41D.3EE1073D@alumni.caltech.edu
обсуждение исходный текст
Ответ на Re: [HACKERS] Oops, I seem to have changed UNION's behavior  (Bruce Momjian <maillist@candle.pha.pa.us>)
Ответы Re: [HACKERS] Oops, I seem to have changed UNION's behavior  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [HACKERS] Oops, I seem to have changed UNION's behavior  (Taral <taral@taral.net>)
Список pgsql-hackers
> > Am I right in thinking that UNION (without ALL) is defined to do a
> > DISTINCT on its result, so that duplicates are removed even if the
> > duplicates both came from the same source table?  That's what 6.4.2
> > does, but I do not know if it's strictly kosher according to the SQL
> > spec.

(Just in case this is still active)

Yes, this is the right behavior according to SQL92...
                        - Thomas

-- 
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Problem with complex query
Следующее
От: Dmitry Samersoff
Дата:
Сообщение: Problem installing plpgsql