From 3026027ec3a795745e8e80fc9f204bebc97be58e Mon Sep 17 00:00:00 2001 From: Alvaro Herrera <alvherre@alvh.no-ip.org> Date: Fri, 17 Dec 2010 18:51:22 -0300 Subject: [PATCH] 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(); -- GitLab