Re: small patch - Mailing list pgsql-docs

From Laurenz Albe
Subject Re: small patch
Date
Msg-id 57c6acf0d2936597184f6bc06f434c66eab07f49.camel@cybertec.at
Whole thread Raw
In response to Re: small patch  (rir <rirans@comcast.net>)
Responses Re: small patch  (rir <rirans@comcast.net>)
Re: small patch  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-docs
On Thu, 2021-10-07 at 16:06 -0400, rir wrote:
> > > > - we should retain "empty or one of", otherwise the following syntax
> > > >   would be undocumented:
> 
> For myself,
>    'FETCH [ <direction> [ FROM | IN ] ] <cursor_name>'
> clearly indicates that 'direction' is optional.

Yes, but since [ FROM | IN ] is inside the bracket, that
diagram would not account for "direction" being omitted
while retaining FROM.

So I suggest that you change the syntax diagram to

FETCH [ direction ] [ FROM | IN ] cursor_name

Then I agree that the "empty or" can be removed.
I think that would be a good idea, and it would add
clarity.

I remain of the opinion that the comments should be
retained, but we can leave that for somebody else to
decide.

Do you want to prepare a new patch and register it in
the commitfest?

Yours,
Laurenz Albe




pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: 9.17. Sequence Manipulation Functions
Next
From: Pantelis Theodosiou
Date:
Subject: Re: 9.17. Sequence Manipulation Functions