From: Peter Eisentraut Date: Tue, 29 Apr 2025 12:40:49 +0000 (+0200) Subject: doc: Small example improvement X-Git-Tag: REL_18_BETA1~58 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=913c60b067aa1a618420fd0372c4df3cf5501863;p=postgresql.git doc: Small example improvement Add a comment character before a line annotation, so that the query can be used as presented. Reported-by: Yaroslav Saburov Author: Euler Taveira Reviewed-by: Robert Treat Discussion: https://www.postgresql.org/message-id/flat/174393459040.678.17810152410419444783%40wrigleys.postgresql.org --- diff --git a/doc/src/sgml/query.sgml b/doc/src/sgml/query.sgml index 59962d6e856..727a0cb185f 100644 --- a/doc/src/sgml/query.sgml +++ b/doc/src/sgml/query.sgml @@ -671,7 +671,7 @@ SELECT max(temp_lo) FROM weather; we might try: -SELECT city FROM weather WHERE temp_lo = max(temp_lo); WRONG +SELECT city FROM weather WHERE temp_lo = max(temp_lo); -- WRONG but this will not work since the aggregate