git.postgresql.org Git - postgresql.git/commit
2008年6月30日 10:58:47 +0000 (10:58 +0000)
2008年6月30日 10:58:47 +0000 (10:58 +0000)
commit 995fb7420268c2457c9a64f41394cea54316365f
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.
This is the main PostgreSQL git repository.
RSS
Atom