Re: [HACKERS] UNION DISTINCT in doc

2010-10-15 Thread Tom Lane
Hitoshi Harada writes: > 2010/10/15 Tom Lane : >> I think it'd be hard to describe without confusing people, because >> while DISTINCT is a noise word there, it's definitely not a noise >> word after SELECT. > I thought adding DISTINCT next to ALL is enough like > select_statement UNION [ ALL |

Re: [HACKERS] UNION DISTINCT in doc

2010-10-14 Thread Hitoshi Harada
2010/10/15 Tom Lane : > Hitoshi Harada writes: >> UNION DISTINCT is nothing more than UNION itself, but gram.y >> definitely accept it and the SQL standard describes it as well. Should >> we add DISTINCT to docs? > > I think it'd be hard to describe without confusing people, because > while DISTIN

Re: [HACKERS] UNION DISTINCT in doc

2010-10-14 Thread Robert Haas
On Thu, Oct 14, 2010 at 10:37 AM, Hitoshi Harada wrote: > I found PostgreSQL accepts UNION DISTINCT but documents don't mention it. > > http://www.postgresql.org/docs/9.0/static/sql-select.html#SQL-UNION > > select_statement UNION [ ALL ] select_statement > > UNION DISTINCT is nothing more than UN

Re: [HACKERS] UNION DISTINCT in doc

2010-10-14 Thread Tom Lane
Hitoshi Harada writes: > UNION DISTINCT is nothing more than UNION itself, but gram.y > definitely accept it and the SQL standard describes it as well. Should > we add DISTINCT to docs? I think it'd be hard to describe without confusing people, because while DISTINCT is a noise word there, it's d

[HACKERS] UNION DISTINCT in doc

2010-10-14 Thread Hitoshi Harada
I found PostgreSQL accepts UNION DISTINCT but documents don't mention it. http://www.postgresql.org/docs/9.0/static/sql-select.html#SQL-UNION select_statement UNION [ ALL ] select_statement UNION DISTINCT is nothing more than UNION itself, but gram.y definitely accept it and the SQL standard des