doc: Small example improvement
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 29 Apr 2025 12:40:49 +0000 (14:40 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 29 Apr 2025 12:43:35 +0000 (14:43 +0200)
Add a comment character before a line annotation, so that the query
can be used as presented.

Reported-by: Yaroslav Saburov <y.saburov@gmail.com>
Author: Euler Taveira <euler@eulerto.com>
Reviewed-by: Robert Treat <rob@xzilla.net>
Discussion: https://www.postgresql.org/message-id/flat/174393459040.678.17810152410419444783%40wrigleys.postgresql.org

doc/src/sgml/query.sgml

index 59962d6e8563352e713888146d30168cd2f7d83f..727a0cb185fb251b83efc3166f2e5cbbfe0b1cbe 100644 (file)
@@ -671,7 +671,7 @@ SELECT max(temp_lo) FROM weather;
     we might try:
 
 <programlisting>
-SELECT city FROM weather WHERE temp_lo = max(temp_lo);     <lineannotation>WRONG</lineannotation>
+SELECT city FROM weather WHERE temp_lo = max(temp_lo);     <lineannotation>-- WRONG</lineannotation>
 </programlisting>
 
     but this will not work since the aggregate