From: Peter Eisentraut Date: Mon, 16 Nov 2015 23:59:55 +0000 (-0500) Subject: doc: Fix commas and improve spacing X-Git-Tag: REL9_6_BETA1~1092 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53264c7b1e0c9be7bc05289372265c768869f818;p=postgresql doc: Fix commas and improve spacing --- diff --git a/doc/src/sgml/queries.sgml b/doc/src/sgml/queries.sgml index ebacba8561..b37adaa9ee 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).