From 9bdad1b5153e5d6b77a8f9c6e32286d6bafcd76d Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 31 Aug 2022 19:28:42 -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 ec843f5684..83d58e54b9 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 4c7d1dca39..8378439deb 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