7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/bin/monitor/Attic/monitor.c,v 1.2 1996/07/18 05:48:34 scrappy Exp $
10
+ * $Header: /cvsroot/pgsql/src/bin/monitor/Attic/monitor.c,v 1.3 1996/07/22 05:59:53 scrappy Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -642,7 +642,6 @@ handle_execution(char *query)
642
642
{
643
643
PGresult * result ;
644
644
int retval = 0 ;
645
- PQprintOpt opt ;
646
645
647
646
result = PQexec (conn ,query );
648
647
@@ -658,18 +657,11 @@ handle_execution(char *query)
658
657
break ;
659
658
case PGRES_TUPLES_OK :
660
659
/*PQprintTuples(result,stdout,PrintAttNames,TerseOutput,COLWIDTH); */
661
- /* if (TerseOutput)
660
+ if (TerseOutput )
662
661
PQdisplayTuples (result ,stdout ,1 ,"" ,PrintAttNames ,TerseOutput );
663
662
else
664
- PQdisplayTuples(result,stdout,1,"|",PrintAttNames,TerseOutput); */
665
- memset (& opt ,0 ,sizeof opt );
666
- opt .header = opt .align = opt .standard = 1 ;
667
- if (TerseOutput )
668
- opt .fieldSep = "" ;
669
- else
670
- opt .fieldSep = "|" ;
671
- PQprint (stdout ,result ,& opt );
672
- break ;
663
+ PQdisplayTuples (result ,stdout ,1 ,"|" ,PrintAttNames ,TerseOutput );
664
+ break ;
673
665
case PGRES_COPY_OUT :
674
666
handle_copy_out (result );
675
667
break ;