From 995fb7420268c2457c9a64f41394cea54316365f Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Mon, 30 Jun 2008 10:58:47 +0000 Subject: Turn PGBE_ACTIVITY_SIZE into a GUC variable, track_activity_query_size. As the buffer could now be a lot larger than before, and copying it could thus be a lot more expensive than before, use strcpy instead of memcpy to copy the query string, as was already suggested in comments. Also, only copy the PgBackendStatus struct and string if the slot is in use. Patch by Thomas Lee, with some changes by me. --- doc/src/sgml/config.sgml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index f25ed24986c..97cf9452617 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,4 +1,4 @@ - + Server Configuration @@ -3331,6 +3331,22 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv; + + track_activity_query_size (integer) + + track_activity_query_size configuration parameter + + + + Specifies the number of bytes reserved to track the currently + executing command for each active session, for the + pg_stat_activity.current_query field. + The default value is 1024. This parameter can only be set at server + start. + + + + track_counts (boolean) -- cgit v1.2.3