Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duPhk-0003Ql-Qy for pgsql-committers@arkaria.postgresql.org; Tue, 19 Sep 2017 21:05:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1duPhj-0000Qx-MP for pgsql-committers@arkaria.postgresql.org; Tue, 19 Sep 2017 21:05:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1duPhj-0000QA-80 for pgsql-committers@postgresql.org; Tue, 19 Sep 2017 21:05:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1duPhg-00011v-I3 for pgsql-committers@postgresql.org; Tue, 19 Sep 2017 21:05:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v8JL59Po002077; Tue, 19 Sep 2017 17:05:09 -0400 From: Tom Lane To: Andres Freund cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Speedup pgstat_report_activity by moving mb-aware truncation to In-reply-to: <20170919210228.wfo2q6qi3dwunhaf@alap3.anarazel.de> References: <32707.1505852731@sss.pgh.pa.us> <20170919203239.lshzqs4fqnpeo7sg@alap3.anarazel.de> <1506.1505854389@sss.pgh.pa.us> <20170919210228.wfo2q6qi3dwunhaf@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 19 Sep 2017 14:02:28 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2075.1505855109.1@sss.pgh.pa.us> Date: Tue, 19 Sep 2017 17:05:09 -0400 Message-ID: <2076.1505855109@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Andres Freund 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 -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers