doc: show direction is optional in FETCH/MOVE's FROM/IN syntax
authorBruce Momjian
Wed, 31 Aug 2022 23:28:42 +0000 (19:28 -0400)
committerBruce Momjian
Wed, 31 Aug 2022 23:29:06 +0000 (19:29 -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 ec843f56844299e0a000800c14b14d46a776885c..83d58e54b9d82c25abc09f63193f0db64ce3c833 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