Commit 3d62fbc4 authored by Peter Eisentraut's avatar Peter Eisentraut

squished \dS+ bug pointed out by Mike Mascari

parent bfabd4f0
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright 2000 by PostgreSQL Global Development Group * Copyright 2000 by PostgreSQL Global Development Group
* *
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.30 2000/04/16 15:46:40 petere Exp $ * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.31 2000/04/16 20:04:50 petere Exp $
*/ */
#include "postgres.h" #include "postgres.h"
#include "command.h" #include "command.h"
...@@ -306,9 +306,6 @@ exec_command(const char *cmd, ...@@ -306,9 +306,6 @@ exec_command(const char *cmd,
case 'i': case 'i':
case 's': case 's':
case 'S': case 'S':
if (cmd[1] == 'S' && cmd[2] == '\0')
success = listTables("Stvs", NULL, show_verbose);
else
success = listTables(&cmd[1], name, show_verbose); success = listTables(&cmd[1], name, show_verbose);
break; break;
default: default:
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright 2000 by PostgreSQL Global Development Group * Copyright 2000 by PostgreSQL Global Development Group
* *
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.20 2000/04/16 15:46:40 petere Exp $ * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.21 2000/04/16 20:04:51 petere Exp $
*/ */
#include "postgres.h" #include "postgres.h"
#include "describe.h" #include "describe.h"
...@@ -973,6 +973,10 @@ listTables(const char *infotype, const char *name, bool desc) ...@@ -973,6 +973,10 @@ listTables(const char *infotype, const char *name, bool desc)
PGresult *res; PGresult *res;
printQueryOpt myopt = pset.popt; printQueryOpt myopt = pset.popt;
if (showSystem && !(showSeq || showIndices || showViews || showTables))
showTables = showViews = showSeq = true;
buf[0] = '\0'; buf[0] = '\0';
/* tables */ /* tables */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment