aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/regerror.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2008-06-30 10:58:47 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2008-06-30 10:58:47 +0000
commit995fb7420268c2457c9a64f41394cea54316365f (patch)
treed8de58e9497f15da810d19c71a18f8fe6692b060 /src/backend/regex/regerror.c
parent7ea9b997ef07672d45278ab1c5b0634eaa090966 (diff)
downloadpostgresql-995fb7420268c2457c9a64f41394cea54316365f.tar.gz
postgresql-995fb7420268c2457c9a64f41394cea54316365f.zip
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.
Diffstat (limited to 'src/backend/regex/regerror.c')
0 files changed, 0 insertions, 0 deletions