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

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Oops, I seem to have changed UNION's behavior
Date: 1999-05-10 18:26:40
Message-ID: 199905101826.OAA04574@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu> writes:
> >>>> 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...
>
> OK, then 6.5 is still broken :-(. I know a lot more about the planner
> than I did then, so I will see if I can fix it "right" --- that is,
> without taking out equal()'s ability to detect equality of Query nodes.
>
> If that seems too hard/risky, I will just lobotomize equal() instead.
>
> Thanks for the reminder, Bruce --- I had forgotten about this issue.

Hey, that's why I keep 500 messages in my PostgreSQL mailbox.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 1999-05-10 18:27:27 Re: [HACKERS] numeric & decimal
Previous Message Bruce Momjian 1999-05-10 18:20:19 Re: [HACKERS] Minor pg_dump buglet