8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.149 2000/04/04 21:44:39 tgl Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.150 2000/04/04 23:52:50 tgl Exp $
12
12
*
13
13
* NOTES
14
14
* this is the "main" module of the postgres backend and
@@ -150,19 +150,6 @@ int UseNewLine = 0; /* Use EOF as query delimiters */
150
150
*/
151
151
int XfuncMode = 0 ;
152
152
153
- /*
154
- * ----------------
155
- * Note: _exec_repeat_ defaults to 1 but may be changed
156
- * by a DEBUG command. If you set this to a large
157
- * number N, run a single query, and then set it
158
- * back to 1 and run N queries, you can get an idea
159
- * of how much time is being spent in the parser and
160
- * planner b/c in the first case this overhead only
161
- * happens once. -cim 6/9/91
162
- * ----------------
163
- */
164
- int _exec_repeat_ = 1 ;
165
-
166
153
/* ----------------------------------------------------------------
167
154
* decls for routines only used in this file
168
155
* ----------------------------------------------------------------
@@ -634,9 +621,8 @@ pg_exec_query_dest(char *query_string, /* string to execute */
634
621
else
635
622
{
636
623
Plan * plan ;
637
- int j ;
638
624
639
- /* If aborted transaction, quit now */
625
+ /* If aborted transaction, skip planning and execution */
640
626
if (IsAbortedTransactionBlockState ())
641
627
{
642
628
/* ----------------
@@ -651,7 +637,11 @@ pg_exec_query_dest(char *query_string, /* string to execute */
651
637
652
638
EndCommand (tag , dest );
653
639
654
- break ;
640
+ /* We continue in the loop, on the off chance that there
641
+ * is a COMMIT or ROLLBACK utility command later in the
642
+ * query string.
643
+ */
644
+ continue ;
655
645
}
656
646
657
647
plan = pg_plan_query (querytree );
@@ -669,12 +659,9 @@ pg_exec_query_dest(char *query_string, /* string to execute */
669
659
if (ShowExecutorStats )
670
660
ResetUsage ();
671
661
672
- for (j = 0 ; j < _exec_repeat_ ; j ++ )
673
- {
674
- if (Verbose )
675
- TPRINTF (TRACE_VERBOSE , "ProcessQuery" );
676
- ProcessQuery (querytree , plan , dest );
677
- }
662
+ if (Verbose )
663
+ TPRINTF (TRACE_VERBOSE , "ProcessQuery" );
664
+ ProcessQuery (querytree , plan , dest );
678
665
679
666
if (ShowExecutorStats )
680
667
{
@@ -1462,7 +1449,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
1462
1449
if (!IsUnderPostmaster )
1463
1450
{
1464
1451
puts ("\nPOSTGRES backend interactive interface " );
1465
- puts ("$Revision: 1.149 $ $Date: 2000/04/04 21:44:39 $\n" );
1452
+ puts ("$Revision: 1.150 $ $Date: 2000/04/04 23:52:50 $\n" );
1466
1453
}
1467
1454
1468
1455
/*
0 commit comments