Fix psql \h output for case of no parameters (ie, list all the known commands)
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Jan 2008 21:13:55 +0000 (21:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Jan 2008 21:13:55 +0000 (21:13 +0000)
commit0ab4975ac0911448efeab921f505a7f39c375045
tree56268cc19677b91f97a4b7aa0a840148996585d8
parentf8c5f186ded5565cfdf93bfbc96168b8674028ce
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.
src/bin/psql/create_help.pl
src/bin/psql/help.c