]> granicus.if.org Git - postgresql/commit
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)
commitf7108ce06bb526ba336c194956b4ed924b317b7a
treea3c8a95121ae089a9fc86446d0342ec058574ff4
parent000666bbfea4694212d104202d21875ce6f160c7
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