diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2010-12-17 18:51:22 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2010-12-17 18:51:22 -0300 |
commit | 3026027ec3a795745e8e80fc9f204bebc97be58e (patch) | |
tree | 953172d6430ad76d4321c934e229064bf1b724bc /src/backend/tcop/postgres.c | |
parent | b68193c0c7a7cfbc4aead3910cd492be63c0cd8b (diff) | |
download | postgresql-3026027ec3a795745e8e80fc9f204bebc97be58e.tar.gz postgresql-3026027ec3a795745e8e80fc9f204bebc97be58e.zip |
set_ps_display when calling functions via fastpath
This improves tag output by log_line_prefix
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |