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

Commit 7540af4

Browse files
author
Thomas G. Lockhart
committed
Move debugging printout of the query tree to print for all cases.
Formerly came just after early exit from loop for command nodes, so missed some cases.
1 parent c8b3d5d commit 7540af4

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/backend/tcop/postgres.c

+8-9
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.83 1998/08/24 01:38:02 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.84 1998/08/25 15:00:17 thomas Exp $
1111
*
1212
* NOTES
1313
* this is the "main" module of the postgres backend and
@@ -427,6 +427,12 @@ pg_parse_and_plan(char *query_string, /* string to execute */
427427

428428
querytree = querytree_list->qtrees[i];
429429

430+
if (DebugPrintQuery == true)
431+
{
432+
printf("\n---- \tquery is:\n%s\n", query_string);
433+
printf("\n");
434+
fflush(stdout);
435+
}
430436

431437
/* don't rewrite utilites */
432438
if (querytree->commandType == CMD_UTILITY)
@@ -435,13 +441,6 @@ pg_parse_and_plan(char *query_string, /* string to execute */
435441
continue;
436442
}
437443

438-
if (DebugPrintQuery == true)
439-
{
440-
printf("\n---- \tquery is:\n%s\n", query_string);
441-
printf("\n");
442-
fflush(stdout);
443-
}
444-
445444
if (DebugPrintParse == true)
446445
{
447446
printf("\n---- \tparser outputs :\n");
@@ -1391,7 +1390,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
13911390
if (!IsUnderPostmaster)
13921391
{
13931392
puts("\nPOSTGRES backend interactive interface");
1394-
puts("$Revision: 1.83 $ $Date: 1998/08/24 01:38:02 $");
1393+
puts("$Revision: 1.84 $ $Date: 1998/08/25 15:00:17 $");
13951394
}
13961395

13971396
/* ----------------

0 commit comments

Comments
 (0)