From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Speedup pgstat_report_activity by moving mb-aware truncation to
Date: Tue, 19 Sep 2017 13:32:39 -0700
Message-ID: <20170919203239.lshzqs4fqnpeo7sg@alap3.anarazel.de> (raw)
In-Reply-To: <32707.1505852731@sss.pgh.pa.us>
References: <E1duOkJ-0001Mc-U5@gemulon.postgresql.org>
<32707.1505852731@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
On 2017-09-19 16:25:31 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.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
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Speedup pgstat_report_activity by moving mb-aware truncation to
In-Reply-To: <20170919203239.lshzqs4fqnpeo7sg@alap3.anarazel.de>
References: <E1duOkJ-0001Mc-U5@gemulon.postgresql.org> <32707.1505852731@sss.pgh.pa.us> <20170919203239.lshzqs4fqnpeo7sg@alap3.anarazel.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox