ALL in SELECT syntax \h psql flawed?

Поиск
Список
Период
Сортировка
Искать

ALL in SELECT syntax \h psql flawed?

От:
Alvaro Herrera <alvherre@atentus.com>
Дата:
\h select in psql says (among other things)

    [ { UNION | INTERSECT | EXCEPT [ ALL ] } select ]

I think it should read

    [ { UNION | INTERSECT | EXCEPT } [ ALL ] select ]

(the SQL reference says the same thing as psql)

-- 
Alvaro Herrera ()
"La virtud es el justo medio entre dos defectos" (Aristoteles)

Re: ALL in SELECT syntax \h psql flawed?

От:
Thomas Lockhart <lockhart@fourpalms.org>
Дата:
> \h select in psql says (among other things)
>     [ { UNION | INTERSECT | EXCEPT [ ALL ] } select ]
> I think it should read
>     [ { UNION | INTERSECT | EXCEPT } [ ALL ] select ]

I agree. Bruce ("Mr. Backslash" :) are you planning on picking this up?

                      - Thomas

Re: ALL in SELECT syntax \h psql flawed?

От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
> 
> \h select in psql says (among other things)
> 
>     [ { UNION | INTERSECT | EXCEPT [ ALL ] } select ]
> 
> I think it should read
> 
>     [ { UNION | INTERSECT | EXCEPT } [ ALL ] select ]
> 
> (the SQL reference says the same thing as psql)

Good catch!  Hard to imagine how we missed seeing this mistake.  Patch
applied.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  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
Index: doc/src/sgml/sql.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/sql.sgml,v
retrieving revision 1.23
diff -c -r1.23 sql.sgml
*** doc/src/sgml/sql.sgml	2001/10/20 02:55:38	1.23
--- doc/src/sgml/sql.sgml	2001/10/23 16:27:30
***************
*** 861,867 ****
      [ WHERE condition ]
      [ GROUP BY expression [, ...] ]
      [ HAVING condition [, ...] ]
!     [ { UNION | INTERSECT | EXCEPT [ ALL ] } select ]
      [ ORDER BY expression [ ASC | DESC | USING operator ] [, ...] ]
      [ FOR UPDATE [ OF class_name [, ...] ] ]
      [ LIMIT { count | ALL } ]
--- 861,867 ----
      [ WHERE condition ]
      [ GROUP BY expression [, ...] ]
      [ HAVING condition [, ...] ]
!     [ { UNION | INTERSECT | EXCEPT } [ ALL ] select ]
      [ ORDER BY expression [ ASC | DESC | USING operator ] [, ...] ]
      [ FOR UPDATE [ OF class_name [, ...] ] ]
      [ LIMIT { count | ALL } ]
Index: doc/src/sgml/ref/select.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/ref/select.sgml,v
retrieving revision 1.48
diff -c -r1.48 select.sgml
*** doc/src/sgml/ref/select.sgml	2001/10/20 02:55:38	1.48
--- doc/src/sgml/ref/select.sgml	2001/10/23 16:27:54
***************
*** 26,32 ****
      [ WHERE condition ]
      [ GROUP BY expression [, ...] ]
      [ HAVING condition [, ...] ]
!     [ { UNION | INTERSECT | EXCEPT [ ALL ] } select ]
      [ ORDER BY expression [ ASC | DESC | USING operator ] [, ...] ]
      [ FOR UPDATE [ OF tablename [, ...] ] ]
      [ LIMIT { count | ALL } ]
--- 26,32 ----
      [ WHERE condition ]
      [ GROUP BY expression [, ...] ]
      [ HAVING condition [, ...] ]
!     [ { UNION | INTERSECT | EXCEPT } [ ALL ] select ]
      [ ORDER BY expression [ ASC | DESC | USING operator ] [, ...] ]
      [ FOR UPDATE [ OF tablename [, ...] ] ]
      [ LIMIT { count | ALL } ]
Index: doc/src/sgml/ref/select_into.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/ref/select_into.sgml,v
retrieving revision 1.13
diff -c -r1.13 select_into.sgml
*** doc/src/sgml/ref/select_into.sgml	2001/10/22 18:14:47	1.13
--- doc/src/sgml/ref/select_into.sgml	2001/10/23 16:27:54
***************
*** 29,35 ****
      [ WHERE condition ]
      [ GROUP BY expression [, ...] ]
      [ HAVING condition [, ...] ]
!     [ { UNION | INTERSECT | EXCEPT [ ALL ] } select ]
      [ ORDER BY expression [ ASC | DESC | USING operator ] [, ...] ]
      [ FOR UPDATE [ OF tablename [, ...] ] ]
      [ LIMIT [ start , ] { count | ALL } ]
--- 29,35 ----
      [ WHERE condition ]
      [ GROUP BY expression [, ...] ]
      [ HAVING condition [, ...] ]
!     [ { UNION | INTERSECT | EXCEPT } [ ALL ] select ]
      [ ORDER BY expression [ ASC | DESC | USING operator ] [, ...] ]
      [ FOR UPDATE [ OF tablename [, ...] ] ]
      [ LIMIT [ start , ] { count | ALL } ]

Re: ALL in SELECT syntax \h psql flawed?

От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
> > \h select in psql says (among other things)
> >     [ { UNION | INTERSECT | EXCEPT [ ALL ] } select ]
> > I think it should read
> >     [ { UNION | INTERSECT | EXCEPT } [ ALL ] select ]
> 
> I agree. Bruce ("Mr. Backslash" :) are you planning on picking this up?

Done.  :-)

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  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
FAQ