diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-07 20:56:07 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-07 20:56:07 +0000 |
commit | b4b62cff9343404edcf144df41765eb899d448bc (patch) | |
tree | dea2725fbb982d8d85643cfc2d84119cfd73e82d /src/bin/psql/command.c | |
parent | 1b59b442cee757f28a3951de698c706035d5e278 (diff) | |
download | postgresql-b4b62cff9343404edcf144df41765eb899d448bc.tar.gz postgresql-b4b62cff9343404edcf144df41765eb899d448bc.zip |
Apply the proper version of Christopher Kings-Lynne's describe patch
(ie, the one with describe-schema support). Minor code review.
Adjust display of casts to use standard type names.
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 06d31598566..419e44a6326 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright 2000-2002 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.86 2002/12/12 21:02:21 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.87 2003/01/07 20:56:06 tgl Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -350,15 +350,27 @@ exec_command(const char *cmd, case 'a': success = describeAggregates(pattern, show_verbose); break; + case 'c': + success = listConversions(pattern); + break; + case 'C': + success = listCasts(pattern); + break; case 'd': success = objectDescription(pattern); break; + case 'D': + success = listDomains(pattern); + break; case 'f': success = describeFunctions(pattern, show_verbose); break; case 'l': success = do_lo_list(); break; + case 'n': + success = listSchemas(pattern); + break; case 'o': success = describeOperators(pattern); break; @@ -378,16 +390,7 @@ exec_command(const char *cmd, case 'u': success = describeUsers(pattern); break; - case 'D': - success = listDomains(pattern); - break; - case 'c': - success = listConversions(pattern); - break; - case 'C': - success = listCasts(pattern); - break; - + default: status = CMD_UNKNOWN; } |