Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUmWP-0006l7-Ku for pgsql-docs@arkaria.postgresql.org; Thu, 27 Aug 2015 02:02:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZUmWO-00080i-UE for pgsql-docs@arkaria.postgresql.org; Thu, 27 Aug 2015 02:02:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZUmWN-0007zt-Qt for pgsql-docs@postgresql.org; Thu, 27 Aug 2015 02:02:31 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZUmWJ-0005MT-S3 for pgsql-docs@postgresql.org; Thu, 27 Aug 2015 02:02:30 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1ZUmWI-0000Gv-7O; Wed, 26 Aug 2015 22:02:26 -0400 Date: Wed, 26 Aug 2015 22:02:26 -0400 From: Bruce Momjian To: "David G. Johnston" Cc: "pgsql-docs@postgresql.org" Subject: Re: Omission of "(or C)" in psql's "pset title" header Message-ID: <20150827020226.GG29674@momjian.us> References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Clx92ZfkiYIKRjnr" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org --Clx92ZfkiYIKRjnr Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Jun 24, 2015 at 06:11:20PM -0400, David G. Johnston wrote: > http://www.postgresql.org/docs/devel/static/app-psql.html > > The other pset keywords with black-slash aliases include a "(or )" > paren after the keyword.  "title" does not (should be "C") Attached is a patch to implement this, including a doc patch. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + --Clx92ZfkiYIKRjnr Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="title.diff" diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml new file mode 100644 index f996865..9361591 *** a/doc/src/sgml/ref/psql-ref.sgml --- b/doc/src/sgml/ref/psql-ref.sgml *************** lo_import 152801 *** 2336,2342 **** ! title Sets the table title for any subsequently printed tables. This --- 2336,2342 ---- ! title (or C) Sets the table title for any subsequently printed tables. This diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c new file mode 100644 index 6181a61..293c520 *** a/src/bin/psql/command.c --- b/src/bin/psql/command.c *************** do_pset(const char *param, const char *v *** 2636,2642 **** } /* set title override */ ! else if (strcmp(param, "title") == 0) { free(popt->title); if (!value) --- 2636,2642 ---- } /* set title override */ ! else if (strcmp(param, "C") == 0 || strcmp(param, "title") == 0) { free(popt->title); if (!value) *************** printPsetInfo(const char *param, struct *** 2836,2842 **** } /* show title override */ ! else if (strcmp(param, "title") == 0) { if (popt->title) printf(_("Title is \"%s\".\n"), popt->title); --- 2836,2842 ---- } /* show title override */ ! else if (strcmp(param, "C") == 0 || strcmp(param, "title") == 0) { if (popt->title) printf(_("Title is \"%s\".\n"), popt->title); --Clx92ZfkiYIKRjnr Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs --Clx92ZfkiYIKRjnr--