|
8 | 8 | * |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.75 2004/03/05 00:21:41 momjian Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.76 2004/03/18 23:26:17 momjian Exp $ |
12 | 12 | * |
13 | 13 | *------------------------------------------------------------------------- |
14 | 14 | */ |
@@ -406,17 +406,14 @@ PortalRun(Portal portal, long count, |
406 | 406 | if (completionTag) |
407 | 407 | completionTag[0]='\0'; |
408 | 408 |
|
409 | | -if (portal->strategy!=PORTAL_MULTI_QUERY) |
| 409 | +if (log_executor_stats&&portal->strategy!=PORTAL_MULTI_QUERY) |
410 | 410 | { |
411 | 411 | ereport(DEBUG3, |
412 | 412 | (errmsg_internal("PortalRun"))); |
413 | 413 | /* PORTAL_MULTI_QUERY logs its own stats per query */ |
414 | | -if (log_executor_stats) |
415 | | -ResetUsage(); |
| 414 | +ResetUsage(); |
416 | 415 | } |
417 | 416 |
|
418 | | -if (log_executor_stats&&portal->strategy!=PORTAL_MULTI_QUERY) |
419 | | - |
420 | 417 | /* |
421 | 418 | * Check for improper portal use, and mark portal active. |
422 | 419 | */ |
|