postgres.git / summary / log / commit / refs
commit 3026027ec3a795745e8e80fc9f204bebc97be58e
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: Fri Dec 17 21:51:22 2010 +0000
First released in: 9.1.0
set_ps_display when calling functions via fastpath
This improves tag output by log_line_prefix
src/backend/tcop/postgres.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index ff2e9bd0aaa..e690cdbf399 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -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();
[parent: b68193c0c7a7]