pgsql/src/backend/utils/misc ps_status.c

Started by Tom Laneover 24 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

CVSROOT: /cvsroot
Module name: pgsql
Changes by: tgl@postgresql.org 01/12/21 10:22:09

Modified files:
src/backend/utils/misc: ps_status.c

Log message:
Use MemSet() rather than a loop to do blank-padding on PS_USE_CLOBBER_ARGV
machines. I have just been observing some scenarios where set_ps_display
accounts for more than 10% of the backend CPU, and this loop has to be
the reason.