Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1b5a004

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 639e1aa commit 1b5a004

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
@@ -131,6 +131,9 @@ TABLE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ]
131131
eliminates groups that do not satisfy the given condition. (See
132132
<xref linkend="sql-groupby"/> and
133133
<xref linkend="sql-having"/> below.)
134+
Although query output columns are nominally computed in the next
135+
step, they can also be referenced (by name or ordinal number)
136+
in the <literal>GROUP BY</literal> clause.
134137
</para>
135138
</listitem>
136139

0 commit comments

Comments
 (0)