Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3d62fbc

Browse files
committed
squished \dS+ bug pointed out by Mike Mascari
1 parent bfabd4f commit 3d62fbc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/bin/psql/command.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.30 2000/04/16 15:46:40 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.31 2000/04/16 20:04:50 petere Exp $
77
*/
88
#include "postgres.h"
99
#include "command.h"
@@ -306,9 +306,6 @@ exec_command(const char *cmd,
306306
case 'i':
307307
case 's':
308308
case 'S':
309-
if (cmd[1] == 'S' && cmd[2] == '\0')
310-
success = listTables("Stvs", NULL, show_verbose);
311-
else
312309
success = listTables(&cmd[1], name, show_verbose);
313310
break;
314311
default:

src/bin/psql/describe.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.20 2000/04/16 15:46:40 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.21 2000/04/16 20:04:51 petere Exp $
77
*/
88
#include "postgres.h"
99
#include "describe.h"
@@ -973,6 +973,10 @@ listTables(const char *infotype, const char *name, bool desc)
973973
PGresult *res;
974974
printQueryOpt myopt = pset.popt;
975975

976+
if (showSystem && !(showSeq || showIndices || showViews || showTables))
977+
showTables = showViews = showSeq = true;
978+
979+
976980
buf[0] = '\0';
977981

978982
/* tables */

0 commit comments

Comments
 (0)