diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-27 20:09:44 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-27 20:09:44 +0000 |
| commit | 982430f8469dfc0fd9d9196862f34a2c3fc7dc13 (patch) | |
| tree | 5f672e30ddd44b4548ba3e18f534fd5008bf3fa8 /src/backend/postmaster | |
| parent | 351372e585746538ef080bfe1219de3f3074a025 (diff) | |
Put back encoding-conversion step in processing of incoming queries;
I had inadvertently omitted it while rearranging things to support
length-counted incoming messages. Also, change the parser's API back
to accepting a 'char *' query string instead of 'StringInfo', as the
latter wasn't buying us anything except overhead. (I think when I put
it in I had some notion of making the parser API 8-bit-clean, but
seeing that flex depends on null-terminated input, that's not really
ever gonna happen.)
Diffstat (limited to 'src/backend/postmaster')
| -rw-r--r-- | src/backend/postmaster/pgstat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index 05349743520..e5bd93eb066 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -13,7 +13,7 @@ * * Copyright (c) 2001-2003, PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.34 2003/04/26 02:57:14 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.35 2003/04/27 20:09:44 tgl Exp $ * ---------- */ #include "postgres.h" @@ -446,7 +446,7 @@ pgstat_bestart(void) * ---------- */ void -pgstat_report_activity(char *what) +pgstat_report_activity(const char *what) { PgStat_MsgActivity msg; int len; @@ -455,7 +455,8 @@ pgstat_report_activity(char *what) return; len = strlen(what); - len = pg_mbcliplen((const unsigned char *) what, len, PGSTAT_ACTIVITY_SIZE - 1); + len = pg_mbcliplen((const unsigned char *) what, len, + PGSTAT_ACTIVITY_SIZE - 1); memcpy(msg.m_what, what, len); msg.m_what[len] = '\0'; |
