pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rir <rirans@comcast.net>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: rir <rirans@comcast.net>
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: small patch
Date: Thu, 7 Oct 2021 16:06:12 -0400
Message-ID: <20211007200612.rkxxgeorw6w4fpjp@localhost> (raw)
In-Reply-To: <9f703511c57d6bb0f44f9a968414869854ae50ea.camel@cybertec.at>
References: <20211001163938.ifg4ayrsjwd7r6zr@localhost>
	<1c0eefa304434f67fd6a5a9d3f420d59ac74623a.camel@cybertec.at>
	<20211007033905.pmsg5qnyqceepfva@localhost>
	<9f703511c57d6bb0f44f9a968414869854ae50ea.camel@cybertec.at>

On Thu, Oct 07, 2021 at 07:58:47AM +0200, Laurenz Albe wrote:
> On Wed, 2021-10-06 at 23:39 -0400, rir wrote:
> > On Mon, Oct 04, 2021 at 08:18:22AM +0200, Laurenz Albe wrote:
> > > On Fri, 2021-10-01 at 21:06 -0400, rir wrote:

> > > > Minor changes to move.sgml and fetch.sgml.

> > > However, I don't think that is an improvement:
> > > 
> > > - the comments pointing from MOVE to FETCH and vice versa are
> > >   helpful for people who edit the documentation like you did
> > > - we should retain "empty or one of", otherwise the following syntax
> > >   would be undocumented:
> > > 
> > >       FETCH FROM c;
> > 
> > Your view is completely reasonable, but it suggests that
> > many of the synopses are leaving syntax undocumented.
> > The 'empty or one of:' is only used in these two synopses.

> Can you think of a way to modify the syntax diagram so that it
> expresses that and still remains comprehensible?


For myself,
   'FETCH [ <direction> [ FROM | IN ] ] <cursor_name>'
clearly indicates that 'direction' is optional.

Rob





view thread (16+ messages)  latest in thread

Message-ID: <20211007200612.rkxxgeorw6w4fpjp@localhost>
Permalink:  ../20211007200612.rkxxgeorw6w4fpjp@localhost/
Also on:    postgresql.org/message-id/20211007200612.rkxxgeorw6w4fpjp@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: rirans@comcast.net, laurenz.albe@cybertec.at, pgsql-docs@lists.postgresql.org
  Subject: Re: small patch
  In-Reply-To: <20211007200612.rkxxgeorw6w4fpjp@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox