Fix psql \h output for case of no parameters (ie, list all the known commands)

Tom Lane <tgl@sss.pgh.pa.us>

Commit: f7108ce06bb526ba336c194956b4ed924b317b7a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-01-20T21:13:55Z
Releases: 8.3.0
Fix psql \h output for case of no parameters (ie, list all the known commands)
to format properly for the actually needed column width, instead of having
a hard-wired assumption about the longest command name length.  Also make it
respond to the current screen width.  In passing, const-ify the constant
table.

Files

PathChange+/−
src/bin/psql/create_help.pl modified +12 −8
src/bin/psql/help.c modified +42 −21