Re: A GUC variable to replace PGBE_ACTIVITY_SIZE

"Heikki Linnakangas" <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.patches
Organization EnterpriseDB
Message-ID <[email protected]>
I'd like to see some quick testing of this thing mentioned in the comments:

> 	/*
> 	 * XXX if pgstat_track_activity_query_size is really large,
> 	 * it might be best to use strcpy not memcpy for copying the
> 	 * activity string?
> 	 */

If we make it a GUC, there will be people running with "really large" 
pgstat_track_activity_query_size settings. In fact I wouldn't be 
surprised if people routinely cranked it up to the 10-100 KB range, just 
in case.

It's going to be platform-dependent, for sure, but some quick 
micro-benchmarks of where the break-even point between memcpy and strcpy 
lies would be nice.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

-- 
Sent via pgsql-patches mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.