Re: [DOCS] typofix for sysv_shmem.c

2011-04-01 Thread Heikki Linnakangas

On 01.04.2011 00:49, Josh Kupershmidt wrote:

Fixing two missing spaces in messages from sysv_shmem.c


Thanks, fixed.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

--
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs


[DOCS] psql's \h MOVE

2011-04-01 Thread Alvaro Herrera
I just noticed that \h MOVE is particularly unhelpful:

alvherre=# \h move
Command: MOVE
Description: position a cursor
Syntax:
MOVE [ direction { FROM | IN } ] cursorname


The problem is that it doesn't specify what "direction" is.  The doc
text tells you to look into FETCH for details, but in \h you have to
guess.

We could fix this by including a note about fetch in the ,
so that it'd look like this:

alvherre=# \h move
Command: MOVE
Description: position a cursor
Syntax:
MOVE [ direction [ FROM | IN ] ] cursor_name

See FETCH for details on direction

This, of course, also appears in the HTML output.

This requires this simple patch:

--- a/doc/src/sgml/ref/move.sgml
+++ b/doc/src/sgml/ref/move.sgml
@@ -27,6 +27,8 @@ PostgreSQL documentation
  
 
 MOVE [ direction [ FROM | IN ] ] 
cursor_name
+
+See FETCH for details on direction.
 
  


Would anybody object to doing things this way?

The alternative I see is to expand the "direction" in the MOVE synopsis,
but it is repetitive and would require more maintenance should we ever
decide to change the possible directions.

-- 
Álvaro Herrera 

-- 
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs