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

Andres Freund <andres@anarazel.de>

Commit: 07c8651dd91d5aea38bee268acb582674ca4b5ea
Author: Andres Freund <andres@anarazel.de>
Date: 2014-09-09T22:08:56Z
Releases: 9.5.0
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@mail.gmail.com,
    CAFj8pRA54AbTv2RXDTRxiAd8hy8wxmoVLqhJDRCwEnhdd7OUkw@mail.gmail.com

Files

PathChange+/−
doc/src/sgml/ref/psql-ref.sgml modified +18 −5
src/bin/psql/command.c modified +13 −1
src/bin/psql/help.c modified +162 −48
src/bin/psql/help.h modified +3 −1
src/bin/psql/startup.c modified +21 −8
src/bin/psql/tab-complete.c modified +7 −0