pgsql: Turn PGBE_ACTIVITY_SIZE into a GUC variable, - Mailing list pgsql-committers

From heikki@postgresql.org (Heikki Linnakangas)
Subject pgsql: Turn PGBE_ACTIVITY_SIZE into a GUC variable,
Date
Msg-id 20080630105847.C722D754857@cvs.postgresql.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: c2main@pgfoundry.org (User C2main)
Date:
Subject: muninpgplugins - muninpgplugins: minor diff
Next
From: mha@pgfoundry.org (User Mha)
Date:
Subject: pginstaller - pginst: Consistently spell "initialize", per complain from