|
8 | 8 | * |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.489 2006/06/20 22:52:00 tgl Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.490 2006/06/27 22:16:44 momjian Exp $ |
12 | 12 | * |
13 | 13 | * NOTES |
14 | 14 | * this is the "main" module of the postgres backend and |
@@ -910,7 +910,7 @@ exec_simple_query(const char *query_string) |
910 | 910 | */ |
911 | 911 | commandTag=CreateCommandTag(parsetree); |
912 | 912 |
|
913 | | -set_ps_display(commandTag); |
| 913 | +set_ps_display(commandTag, false); |
914 | 914 |
|
915 | 915 | BeginCommand(commandTag,dest); |
916 | 916 |
|
@@ -1144,7 +1144,7 @@ exec_parse_message(const char *query_string,/* string to execute */ |
1144 | 1144 |
|
1145 | 1145 | pgstat_report_activity(query_string); |
1146 | 1146 |
|
1147 | | -set_ps_display("PARSE"); |
| 1147 | +set_ps_display("PARSE", false); |
1148 | 1148 |
|
1149 | 1149 | if (save_log_statement_stats) |
1150 | 1150 | ResetUsage(); |
@@ -1376,7 +1376,7 @@ exec_bind_message(StringInfo input_message) |
1376 | 1376 |
|
1377 | 1377 | pgstat_report_activity("<BIND>"); |
1378 | 1378 |
|
1379 | | -set_ps_display("BIND"); |
| 1379 | +set_ps_display("BIND", false); |
1380 | 1380 |
|
1381 | 1381 | /* |
1382 | 1382 | * Start up a transaction command so we can call functions etc. (Note that |
@@ -1711,7 +1711,7 @@ exec_execute_message(const char *portal_name, long max_rows) |
1711 | 1711 | pgstat_report_activity("<EXECUTE>"); |
1712 | 1712 | } |
1713 | 1713 |
|
1714 | | -set_ps_display(portal->commandTag); |
| 1714 | +set_ps_display(portal->commandTag, false); |
1715 | 1715 |
|
1716 | 1716 | /* |
1717 | 1717 | * We use save_log_statement_stats so ShowUsage doesn't report incorrect |
@@ -2486,7 +2486,7 @@ PostgresMain(int argc, char *argv[], const char *username) |
2486 | 2486 | if (!IsUnderPostmaster) |
2487 | 2487 | MemoryContextInit(); |
2488 | 2488 |
|
2489 | | -set_ps_display("startup"); |
| 2489 | +set_ps_display("startup", false); |
2490 | 2490 |
|
2491 | 2491 | SetProcessingMode(InitProcessing); |
2492 | 2492 |
|
@@ -3121,14 +3121,14 @@ PostgresMain(int argc, char *argv[], const char *username) |
3121 | 3121 | { |
3122 | 3122 | if (IsTransactionOrTransactionBlock()) |
3123 | 3123 | { |
3124 | | -set_ps_display("idle in transaction"); |
| 3124 | +set_ps_display("idle in transaction", false); |
3125 | 3125 | pgstat_report_activity("<IDLE> in transaction"); |
3126 | 3126 | } |
3127 | 3127 | else |
3128 | 3128 | { |
3129 | 3129 | pgstat_report_tabstat(); |
3130 | 3130 |
|
3131 | | -set_ps_display("idle"); |
| 3131 | +set_ps_display("idle", false); |
3132 | 3132 | pgstat_report_activity("<IDLE>"); |
3133 | 3133 | } |
3134 | 3134 |
|
|