Re: pgsql: Add new psql help topics, accessible to both --help and \?.

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: "pgsql-committers(at)postgresql(dot)org" <pgsql-committers(at)postgresql(dot)org>
Subject: Re: pgsql: Add new psql help topics, accessible to both --help and \?.
Date: 2014-09-10 09:03:14
Message-ID: CAFj8pRBr8oqngwiWzU_x+VDmjXEMb50aTpAMuWhbSVhTjVufEg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

2014-09-10 3:04 GMT+02:00 Andres Freund <andres(at)anarazel(dot)de>:

> On 2014-09-09 22:12:35 +0000, Andres Freund wrote:
> > Add new psql help topics, accessible to both --help and \?.
> >
> > Add --help=<topic> for the commandline, and \? <topic> as a backslash
> > command, to show more help than the invocations without parameters
> > do. "commands", "variables" and "options" currently exist as help
> > topics describing, respectively, backslash commands, psql variables,
> > and commandline switches. Without parameters the help commands show
> > their previous topic.
> >
> > Some further wordsmithing or extending of the added help content might
> > be needed; but there seems little benefit delaying the overall feature
> > further.
> >
> > Author: Pavel Stehule, editorialized by many
> >
> > Reviewed-By: Andres Freund, Petr Jelinek, Fujii Masao, MauMau, Abhijit
> > Menon-Sen and Erik Rijkers.
> >
> > Discussion: CAFj8pRDVGuC-nXBfe2CK8vpyzd2Dsr9GVpbrATAnZO=
> 2YQ0s2Q(at)mail(dot)gmail(dot)com,
> > CAFj8pRA54AbTv2RXDTRxiAd8hy8wxmoVLqhJDRCwEnhdd7OUkw(at)mail(dot)gmail(dot)com
>
> Hm. This fails on windows right now because the getopt_long() fallback
> implementation doesn't implement optional_argument. Unless people think
> this can be broken for a day or somebody has a better solution, I'll
> revert tomorrow morning.
> The best plan after that seems to be to add optional_argument support to
> getopt_long.c - looks easy enough.

+1

Pavel

> Do we need a configure test for
> optional_argument? I don't think so, but I could see somebody arguing
> the other way round.
>
> Greetings,
>
> Andres Freund
>
> --
> Andres Freund http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
>
>
> --
> Sent via pgsql-committers mailing list (pgsql-committers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-committers
>

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2014-09-10 11:15:31 Re: pgsql: Add new psql help topics, accessible to both --help and \?.
Previous Message Andres Freund 2014-09-10 01:04:16 Re: pgsql: Add new psql help topics, accessible to both --help and \?.