• Heikki Linnakangas's avatar
    Turn PGBE_ACTIVITY_SIZE into a GUC variable, track_activity_query_size. · 995fb742
    Heikki Linnakangas authored
    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.
    995fb742
guc.c 179 KB