Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1b5a004

Browse filesBrowse 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
Copy full SHA for 1b5a004

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎doc/src/sgml/ref/select.sgml

Copy file name to clipboardExpand all lines: doc/src/sgml/ref/select.sgml
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.