Andres Freund <andres(at)anarazel(dot)de> writes:> Speedup pgstat_report_activity by moving mb-aware truncation to read side.
Looks like you're going to need to not depend on strnlen().
regards, tom lane