Re: [HACKERS] Questions/observations about set_ps_display ()

2006-09-26 Thread Tom Lane
"Strong, David" <[EMAIL PROTECTED]> writes: > The specification for strncpy () indicates that when the length of the > source string (4 bytes) is less than the length of the number of bytes > to copy (2500 bytes), the remainder of the destination string will be > padded with NULL bytes (2496). Base

[HACKERS] Questions/observations about set_ps_display ()

2006-09-26 Thread Strong, David
We're looking for some advice and/or comments. During performance and scalability testing with 8.1.4 and also 8.2Beta1, OProfile reported that the strncpy () C library call was taking a large amount of CPU time while we were running one of our benchmarks. We traced a partial benchmark run using l