Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7540af4

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 parentc8b3d5d commit7540af4

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 8 additions & 9 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp