aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/command.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-08-08 12:26:13 -0400
committerRobert Haas <rhaas@postgresql.org>2011-08-08 12:26:13 -0400
commitc9ac00e6ecfaad4d6a3e1ee478b912c7227ae62a (patch)
treef5978c874a95d67eb24c9280cb8a8132c54ffd37 /src/bin/psql/command.c
parentb69f2e36402aaa222ed03c1769b3de6d5be5f302 (diff)
downloadpostgresql-c9ac00e6ecfaad4d6a3e1ee478b912c7227ae62a.tar.gz
postgresql-c9ac00e6ecfaad4d6a3e1ee478b912c7227ae62a.zip
Teach psql to display the comments on conversions and domains.
\dc and \dD now accept a "+" option, which will cause the comments to be displayed. Along the way, correct a few oversights in the previous commit in this area, 3b17efdfdd846c9bfad1637686e6f18198ea3df5 - namely, (1) when \dL+ is used, make description still be the last column, for consistency with what we've done elsewhere; and (2) document the difference between \dC and \dC+. Josh Kupershmidt, with a couple of doc changes by me.
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r--src/bin/psql/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 84e031dd53e..d6a925e435b 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -378,7 +378,7 @@ exec_command(const char *cmd,
success = describeTablespaces(pattern, show_verbose);
break;
case 'c':
- success = listConversions(pattern, show_system);
+ success = listConversions(pattern, show_verbose, show_system);
break;
case 'C':
success = listCasts(pattern, show_verbose);
@@ -390,7 +390,7 @@ exec_command(const char *cmd,
success = objectDescription(pattern, show_system);
break;
case 'D':
- success = listDomains(pattern, show_system);
+ success = listDomains(pattern, show_verbose, show_system);
break;
case 'f': /* function subsystem */
switch (cmd[2])