From 75c8af902e07a2090df429f410df1e753e3358f1 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 16 Nov 2015 18:59:55 -0500 Subject: [PATCH] doc: Fix commas and improve spacing --- doc/src/sgml/queries.sgml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/doc/src/sgml/queries.sgml b/doc/src/sgml/queries.sgml index 4444c6abd6..b8f5238c94 100644 --- a/doc/src/sgml/queries.sgml +++ b/doc/src/sgml/queries.sgml @@ -1253,8 +1253,8 @@ ROLLUP ( e1, e2, e3, ... ) GROUPING SETS ( ( e1, e2, e3, ... ), ... - ( e1, e2 ) - ( e1 ) + ( e1, e2 ), + ( e1 ), ( ) ) @@ -1282,7 +1282,7 @@ GROUPING SETS ( ( b, c ), ( b ), ( c ), - ( ), + ( ) ) @@ -1294,27 +1294,27 @@ GROUPING SETS ( units for the purposes of generating the individual grouping sets. For example: -CUBE ( (a,b), (c,d) ) +CUBE ( (a, b), (c, d) ) is equivalent to GROUPING SETS ( - ( a, b, c, d ) - ( a, b ) - ( c, d ) + ( a, b, c, d ), + ( a, b ), + ( c, d ), ( ) ) and -ROLLUP ( a, (b,c), d ) +ROLLUP ( a, (b, c), d ) is equivalent to GROUPING SETS ( - ( a, b, c, d ) - ( a, b, c ) - ( a ) + ( a, b, c, d ), + ( a, b, c ), + ( a ), ( ) ) @@ -1333,27 +1333,27 @@ GROUPING SETS ( clause, then the final list of grouping sets is the cross product of the individual items. For example: -GROUP BY a, CUBE(b,c), GROUPING SETS ((d), (e)) +GROUP BY a, CUBE (b, c), GROUPING SETS ((d), (e)) is equivalent to GROUP BY GROUPING SETS ( - (a,b,c,d), (a,b,c,e), - (a,b,d), (a,b,e), - (a,c,d), (a,c,e), - (a,d), (a,e) + (a, b, c, d), (a, b, c, e), + (a, b, d), (a, b, e), + (a, c, d), (a, c, e), + (a, d), (a, e) ) - The construct (a,b) is normally recognized in expressions as + The construct (a, b) is normally recognized in expressions as a row constructor. Within the GROUP BY clause, this does not apply at the top - levels of expressions, and (a,b) is parsed as a list of + levels of expressions, and (a, b) is parsed as a list of expressions as described above. If for some reason you need - a row constructor in a grouping expression, use ROW(a,b). + a row constructor in a grouping expression, use ROW(a, b).