projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
639e1aa
)
doc: mention GROUP BY columns can reference target col numbers
author
Bruce Momjian
Tue, 26 Sep 2023 21:31:06 +0000
(17:31 -0400)
committer
Bruce Momjian
Tue, 26 Sep 2023 21:31:32 +0000
(17:31 -0400)
Reported-by: hape
Discussion: https://postgr.es/m/
168871536004
.379168.
9352636188330923805
@wrigleys.postgresql.org
Backpatch-through: 11
doc/src/sgml/ref/select.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/ref/select.sgml
b/doc/src/sgml/ref/select.sgml
index 0ee0cc7e6416c2fa03733ea93821691eb926a048..42d78913cf99eea2c1af8dcdb4e337eb0ac8358b 100644
(file)
--- a/
doc/src/sgml/ref/select.sgml
+++ b/
doc/src/sgml/ref/select.sgml
@@
-131,6
+131,9
@@
TABLE [ ONLY ]
table_name
[ * ]
eliminates groups that do not satisfy the given condition. (See
and
below.)
+ Although query output columns are nominally computed in the next
+ step, they can also be referenced (by name or ordinal number)
+ in the
GROUP BY
clause.