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: (view raw, whole thread or download thread mbox)
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:
        config.sgml (r1.180 -> r1.181)
        pgstat.c (r1.175 -> r1.176)
        guc.c (r1.456 -> r1.457)
        postgresql.conf.sample (r1.242 -> r1.243)
        pgstat.h (r1.76 -> r1.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-2017 The PostgreSQL Global Development Group