aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1998-08-25 15:00:17 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1998-08-25 15:00:17 +0000
commit7540af490a7f4012898049c37fd2938c11fe26c1 (patch)
treed0e4b198a458ad25b75fbc7d7542cd4339f28df5
parentc8b3d5d3f812196fb79ea777fd3c0d556f747fec (diff)
downloadpostgresql-7540af490a7f4012898049c37fd2938c11fe26c1.tar.gz
postgresql-7540af490a7f4012898049c37fd2938c11fe26c1.zip
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.
-rw-r--r--src/backend/tcop/postgres.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 51af2f84a5a..f7a80d326c6 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.83 1998/08/24 01:38:02 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.84 1998/08/25 15:00:17 thomas Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -427,6 +427,12 @@ pg_parse_and_plan(char *query_string, /* string to execute */
querytree = querytree_list->qtrees[i];
+ if (DebugPrintQuery == true)
+ {
+ printf("\n---- \tquery is:\n%s\n", query_string);
+ printf("\n");
+ fflush(stdout);
+ }
/* don't rewrite utilites */
if (querytree->commandType == CMD_UTILITY)
@@ -435,13 +441,6 @@ pg_parse_and_plan(char *query_string, /* string to execute */
continue;
}
- if (DebugPrintQuery == true)
- {
- printf("\n---- \tquery is:\n%s\n", query_string);
- printf("\n");
- fflush(stdout);
- }
-
if (DebugPrintParse == true)
{
printf("\n---- \tparser outputs :\n");
@@ -1391,7 +1390,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
if (!IsUnderPostmaster)
{
puts("\nPOSTGRES backend interactive interface");
- puts("$Revision: 1.83 $ $Date: 1998/08/24 01:38:02 $");
+ puts("$Revision: 1.84 $ $Date: 1998/08/25 15:00:17 $");
}
/* ----------------