the grouped columns (or a subset thereof) are the primary key of
the table containing the ungrouped column.
</para>
+
+ <para>
+ Currently, <literal>FOR NO KEY UPDATE</>, <literal>FOR UPDATE</>,
+ <literal>FOR SHARE</> and <literal>FOR KEY SHARE</> cannot be
+ specified with <literal>GROUP BY</literal>.
+ </para>
</refsect2>
<refsect2 id="SQL-HAVING">
within aggregate functions. Such a query will emit a single row if the
<literal>HAVING</literal> condition is true, zero rows if it is not true.
</para>
+
+ <para>
+ Currently, <literal>FOR NO KEY UPDATE</>, <literal>FOR UPDATE</>,
+ <literal>FOR SHARE</> and <literal>FOR KEY SHARE</> cannot be
+ specified with <literal>HAVING</literal>.
+ </para>
</refsect2>
<refsect2 id="SQL-WINDOW">
than one window function.
</para>
+ <para>
+ Currently, <literal>FOR NO KEY UPDATE</>, <literal>FOR UPDATE</>,
+ <literal>FOR SHARE</> and <literal>FOR KEY SHARE</> cannot be
+ specified with <literal>WINDOW</literal>.
+ </para>
+
<para>
Window functions are described in detail in
<xref linkend="tutorial-window">,
will normally contain additional expression(s) that determine the
desired precedence of rows within each <literal>DISTINCT ON</> group.
</para>
+
+ <para>
+ Currently, <literal>FOR NO KEY UPDATE</>, <literal>FOR UPDATE</>,
+ <literal>FOR SHARE</> and <literal>FOR KEY SHARE</> cannot be
+ specified with <literal>DISTINCT</literal>.
+ </para>
</refsect2>
<refsect2 id="SQL-UNION">