Re: pgsql: Speedup pgstat_report_activity by moving mb-aware truncation to

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Speedup pgstat_report_activity by moving mb-aware truncation to
Date: 2017-09-19 20:32:39
Message-ID: 20170919203239.lshzqs4fqnpeo7sg@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On 2017-09-19 16:25:31 -0400, Tom Lane wrote:
> 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().

Yup noticed - we have pg_strnlen as a static function in
src/port/snprintf. I'm tempted to just make that public, rather than
open code the equivalent?

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-09-19 20:46:58 Re: pgsql: Make new crash restart test a bit more robust.
Previous Message Tom Lane 2017-09-19 20:25:31 Re: pgsql: Speedup pgstat_report_activity by moving mb-aware truncation to