]> granicus.if.org Git - postgresql/commitdiff
Backed out the changes to monitor.c that seem to be affecting the
authorMarc G. Fournier <scrappy@hub.org>
Mon, 22 Jul 1996 05:59:53 +0000 (05:59 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Mon, 22 Jul 1996 05:59:53 +0000 (05:59 +0000)
ability for createuser to actually create one...

src/bin/monitor/monitor.c

index ecaf205175d45854275ffd7201420c0700a61975..28a8cca67b1d81d6c8c5bc70b4fd99417a97a5ae 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/bin/monitor/Attic/monitor.c,v 1.2 1996/07/18 05:48:34 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/bin/monitor/Attic/monitor.c,v 1.3 1996/07/22 05:59:53 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -642,7 +642,6 @@ handle_execution(char *query)
 {
     PGresult *result;
     int retval = 0;
-    PQprintOpt opt;
     
     result = PQexec(conn, query);
 
@@ -658,18 +657,11 @@ handle_execution(char *query)
        break;
     case PGRES_TUPLES_OK:
 /*     PQprintTuples(result,stdout,PrintAttNames,TerseOutput,COLWIDTH); */
-/*     if (TerseOutput)
+       if (TerseOutput)
            PQdisplayTuples(result,stdout,1,"",PrintAttNames,TerseOutput);
        else
-           PQdisplayTuples(result,stdout,1,"|",PrintAttNames,TerseOutput); */
-        memset(&opt, 0, sizeof opt);
-        opt.header = opt.align = opt.standard = 1;
-       if (TerseOutput)
-           opt.fieldSep = "";
-       else
-           opt.fieldSep = "|";
-        PQprint(stdout, result, &opt);
-        break;
+           PQdisplayTuples(result,stdout,1,"|",PrintAttNames,TerseOutput);
+       break;
     case PGRES_COPY_OUT:
        handle_copy_out(result);
        break;