Re: Proposed Query Planner TODO items - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: Proposed Query Planner TODO items
Date
Msg-id 200312051214.37204.josh@agliodbs.com
Whole thread Raw
In response to Proposed Query Planner TODO items  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
John,

> > SELECT t1.a, t2.b
> > FROM t1, t2
> > WHERE t1.a = t2.a
> >     AND t1.c = x
> >       AND t1.f IN (m, n, o)
> >       AND t2.d = v
> >       AND t2.e BETWEEN j AND k
> > UNION ALL

> Shouldn't that be "UNION" instead of "UNION ALL"? You don't want
> duplicate rows, if i'm not mistaken.

Yes, you're correct; I copied UNION ALL from a test case which was not
generic.  In general, one would want UNION.

--
-Josh BerkusAglio Database SolutionsSan Francisco



pgsql-hackers by date:

Previous
From: elein
Date:
Subject: [fwd: [GENERAL] Domains and function]
Next
From: Greg Stark
Date:
Subject: Re: Proposed Query Planner TODO items