diff options
author | Bruce Momjian <bruce@momjian.us> | 2009-01-20 02:13:42 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2009-01-20 02:13:42 +0000 |
commit | 71928e7b9ff500ce1c183287b6f8e2705841532d (patch) | |
tree | dfd82ee0d734a66a1ccab624e3760ade933050f2 /src/bin/psql/command.c | |
parent | 2384287f6dd84892186cb599b8c84dcdbbd1b516 (diff) |
Make psql \d and \dt consistent for system tables, i.e prevent \d from
showing system tables, make \dS pattern show system table details, and
have \dtS show system and _user_ tables, to be consistent with other \d*
commands.
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 0788bb8e71a..41888666de1 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2009, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.201 2009/01/06 21:10:30 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.202 2009/01/20 02:13:42 momjian Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -334,14 +334,15 @@ exec_command(const char *cmd, OT_NORMAL, NULL, true); show_verbose = strchr(cmd, '+') ? true : false; - show_system = strchr(cmd, 'S') ? true: false; + show_system = strchr(cmd, 'S') ? true : false; switch (cmd[1]) { case '\0': case '+': + case 'S': if (pattern) - success = describeTableDetails(pattern, show_verbose); + success = describeTableDetails(pattern, show_verbose, show_system); else /* standard listing of interesting things */ success = listTables("tvs", NULL, show_verbose, show_system); @@ -390,7 +391,6 @@ exec_command(const char *cmd, case 'v': case 'i': case 's': - case 'S': success = listTables(&cmd[1], pattern, show_verbose, show_system); break; case 'u': |