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 <br...@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. +
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);
-- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs