Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group