8000 doc: mention GROUP BY columns can reference target col numbers · postgres/postgres@e1ae79b · GitHub
[go: up one dir, main page]

Skip to content

Commit e1ae79b

Browse files
committed
doc: mention GROUP BY columns can reference target col numbers
Reported-by: hape <postgres-hape@gmx.de> Discussion: https://postgr.es/m/168871536004.379168.9352636188330923805@wrigleys.postgresql.org Backpatch-through: 11
1 parent 6181eca commit e1ae79b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/src/sgml/ref/select.sgml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ TABLE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ]
129129
eliminates groups that do not satisfy the given condition. (See
130130
<xref linkend="sql-groupby" endterm="sql-groupby-title"/> and
131131
<xref linkend="sql-having" endterm="sql-having-title"/> below.)
132+
Although query output columns are nominally computed in the next
133+
step, they can also be referenced (by name or ordinal number)
134+
in the <literal>GROUP BY</literal> clause.
132135
</para>
133136
</listitem>
134137

0 commit comments

Comments
 (0)
0