From ccbae5fd8d3b23182ce208df4b3fd018db385e69 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 31 Aug 2022 19:28:41 -0400 Subject: [PATCH] doc: show direction is optional in FETCH/MOVE's FROM/IN syntax 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 | 5 +++-- doc/src/sgml/ref/move.sgml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/src/sgml/ref/fetch.sgml b/doc/src/sgml/ref/fetch.sgml index e802be61c8c..b6d66215a97 100644 --- a/doc/src/sgml/ref/fetch.sgml +++ b/doc/src/sgml/ref/fetch.sgml @@ -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 diff --git a/doc/src/sgml/ref/move.sgml b/doc/src/sgml/ref/move.sgml index 4c7d1dca391..8378439debb 100644 --- a/doc/src/sgml/ref/move.sgml +++ b/doc/src/sgml/ref/move.sgml @@ -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