public inbox for [email protected]  
help / color / mirror / Atom feed
From: Bruce Momjian <[email protected]>
To: David G. Johnston <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Omission of "(or C)" in psql's "pset title" header
Date: Wed, 26 Aug 2015 22:02:26 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKFQuwYOmtkz1t+d-MbhmrH0KiKd2t=csmRqrBPSqEvxoYXkrg@mail.gmail.com>
References: <CAKFQuwYOmtkz1t+d-MbhmrH0KiKd2t=csmRqrBPSqEvxoYXkrg@mail.gmail.com>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-docs>

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 <letter>)"
> paren after the keyword.  "title" does not (should be "C")

Attached is a patch to implement this, including a doc patch.

-- 
  Bruce Momjian  <[email protected]>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


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


Attachments:

  [text/x-diff] title.diff (1.7K, 2-title.diff)
  download | inline 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 ****
            </varlistentry>
  
            <varlistentry>
!           <term><literal>title</literal></term>
            <listitem>
            <para>
            Sets the table title for any subsequently printed tables. This
--- 2336,2342 ----
            </varlistentry>
  
            <varlistentry>
!           <term><literal>title</literal> (or <literal>C</literal>)</term>
            <listitem>
            <para>
            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);


view thread (10+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Omission of "(or C)" in psql's "pset title" header
  In-Reply-To: <[email protected]>

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

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