set_ps_display when calling functions via fastpath
authorAlvaro Herrera <[email protected]>
Fri, 17 Dec 2010 21:51:22 +0000 (18:51 -0300)
committerAlvaro Herrera <[email protected]>
Fri, 17 Dec 2010 21:51:22 +0000 (18:51 -0300)
This improves tag output by log_line_prefix

src/backend/tcop/postgres.c

index ff2e9bd0aaa87b22b2aa66098aa54a35d61aec7a..e690cdbf39964a79009fda25ce16cbcf47cf6262 100644 (file)
@@ -3994,8 +3994,9 @@ PostgresMain(int argc, char *argv[], const char *username)
                /* Set statement_timestamp() */
                SetCurrentStatementStartTimestamp();
 
-               /* Tell the collector what we're doing */
+               /* Report query to various monitoring facilities. */
                pgstat_report_activity("<FASTPATH> function call");
+               set_ps_display("<FASTPATH>", false);
 
                /* start an xact for this function invocation */
                start_xact_command();