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

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

Andres Freund <andres(at)anarazel(dot)de> writes:
> I'll just change things so that the pnstrdup() happens first, and then
> do a plain strlen() on that. Same paranoia, less cost.

WFM.

regards, tom lane

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-09-19 21:27:24 pgsql: Avoid use of non-portable strnlen() in pgstat_clip_activity().
Previous Message Tom Lane 2017-09-19 21:03:07 Re: pgsql: Make new crash restart test a bit more robust.