pgsql: Turn PGBE_ACTIVITY_SIZE into a GUC variable,

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Turn PGBE_ACTIVITY_SIZE into a GUC variable,
Date: 2008-06-30 10:58:47
Message-ID: 20080630105847.C722D754857@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/doc/src/sgml:
config.sgml (r1.180 -> r1.181)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/config.sgml?r1=1.180&r2=1.181)
pgsql/src/backend/postmaster:
pgstat.c (r1.175 -> r1.176)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/pgstat.c?r1=1.175&r2=1.176)
pgsql/src/backend/utils/misc:
guc.c (r1.456 -> r1.457)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/guc.c?r1=1.456&r2=1.457)
postgresql.conf.sample (r1.242 -> r1.243)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/postgresql.conf.sample?r1=1.242&r2=1.243)
pgsql/src/include:
pgstat.h (r1.76 -> r1.77)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/pgstat.h?r1=1.76&r2=1.77)

Browse pgsql-committers by date

  From Date Subject
Next Message User Mha 2008-06-30 12:28:18 pginstaller - pginst: Consistently spell "initialize", per complain from
Previous Message User C2main 2008-06-30 08:14:53 muninpgplugins - muninpgplugins: minor diff