Fix psql \h output for case of no parameters (ie, list all the known commands)
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/create_help.pl | modified | +12 −8 |
| src/bin/psql/help.c | modified | +42 −21 |