Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9E3171337B96 for ; Mon, 4 Apr 2011 13:11:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 84365-03 for ; Mon, 4 Apr 2011 16:11:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 2A6751337B69 for ; Mon, 4 Apr 2011 13:11:18 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 13909348022; Mon, 4 Apr 2011 09:11:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bF3O7VVCAABe; Mon, 4 Apr 2011 09:11:15 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [200.126.118.36]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 01341348049; Mon, 4 Apr 2011 09:11:15 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 0FC406E401; Mon, 4 Apr 2011 12:11:12 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: Tom Lane , Pg Docs Subject: Re: psql's \h MOVE From: Alvaro Herrera To: Robert Haas In-reply-to: References: <1301670352-sup-4920@alvh.no-ip.org> <26889.1301763188@sss.pgh.pa.us> Date: Mon, 04 Apr 2011 12:11:11 -0400 Message-Id: <1301933131-sup-7414@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201104/17 X-Sequence-Number: 6588 Excerpts from Robert Haas's message of dom abr 03 20:37:39 -0400 2011: > On Sat, Apr 2, 2011 at 12:53 PM, Tom Lane wrote: > > Alvaro Herrera writes: > >> 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. > > -1 ... if this annoys you, just duplicate the definition of direction > > from FETCH. > > +1 for duplicating the definition. Done that way. (I'd like to have something like \h column_constraint for common stuff in ALTER TABLE and CREATE TABLE, but that'll have to wait.) -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support