1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Teach psql to display comments on languages and casts.

The output of \dL (list languages) is fairly narrow, so we just always
display the comment.  \dC (list casts) can get fairly wide, so we only
display comments if the new \dC+ option is specified.

Josh Kupershmidt
This commit is contained in:
Robert Haas
2011-08-04 12:22:26 -04:00
parent 38de5aad54
commit 3b17efdfdd
5 changed files with 43 additions and 20 deletions

View File

@ -381,7 +381,7 @@ exec_command(const char *cmd,
success = listConversions(pattern, show_system);
break;
case 'C':
success = listCasts(pattern);
success = listCasts(pattern, show_verbose);
break;
case 'd':
if (strncmp(cmd, "ddp", 3) == 0)