doc: show direction is optional in FETCH/MOVE's FROM/IN syntax
authorBruce Momjian
Wed, 31 Aug 2022 23:28:41 +0000 (19:28 -0400)
committerBruce Momjian
Wed, 31 Aug 2022 23:28:41 +0000 (19:28 -0400)
It used to show direction was required for FROM/IN.

Reported-by: Rob
Discussion: https://postgr.es/m/20211015165248.isqjceyilelhnu3k@localhost

Author: Rob 

Backpatch-through: 10

doc/src/sgml/ref/fetch.sgml
doc/src/sgml/ref/move.sgml

index e802be61c8c6dd81d550f636edf42edecced072e..b6d66215a97fb693eb3cf67ecd7450490a33936f 100644 (file)
@@ -27,9 +27,10 @@ PostgreSQL documentation
  
 
 
-FETCH [ direction [ FROM | IN ] ] cursor_name
+FETCH [ direction ] [ FROM | IN ] cursor_name
 
-where direction can be empty or one of:
+where direction can
+be one of:
 
     NEXT
     PRIOR
index 4c7d1dca391b44a4586ee0fc6f06acb6f4fa71f1..8378439debbadb11ef7bcd078c37a01e92e2e13a 100644 (file)
@@ -27,9 +27,10 @@ PostgreSQL documentation
  
 
 
-MOVE [ direction [ FROM | IN ] ] cursor_name
+MOVE [ direction ] [ FROM | IN ] cursor_name
 
-where direction can be empty or one of:
+where direction can
+be one of:
 
     NEXT
     PRIOR