postgres.git / summary / log / commit / refs

commit    8127e6e8ada675f5212e8ffac8cfb9ebaa0fe845
Author:   Bruce Momjian <bruce@momjian.us>
Date:     Fri Nov 17 21:46:43 2023 +0000
First released in: 17.0

    doc:  update query section to show LIMIT/OFFSET like SELECT
    
    The parameter names were slightly better in SELECT, so make them match.
    
    Reported-by: Euler Taveira
    
    Discussion: https://postgr.es/m/CAHE3wgh-EYuAbLG1VS3QTHii1TgWS31h-fYEgrdda7oTOuskOQ@mail.gmail.com
    
    Backpatch-through: master


doc/src/sgml/queries.sgml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/queries.sgml b/doc/src/sgml/queries.sgml index 8a4674e5f28..648b283b064 100644 --- a/doc/src/sgml/queries.sgml +++ b/doc/src/sgml/queries.sgml @@ -1912,7 +1912,8 @@ SELECT a + b AS sum, c FROM table1 ORDER BY sum + c; -- wrong SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression</replaceable> <optional> ORDER BY ... </optional> - <optional> LIMIT { <replaceable>number</replaceable> | ALL } </optional> <optional> OFFSET <replaceable>number</replaceable> </optional> + <optional> LIMIT { <replaceable class="parameter">count</replaceable> | ALL } </optional> + <optional> OFFSET <replaceable class="parameter">start</replaceable> </optional> </synopsis> </para> [parent: b2e237afddc5]