Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duPCa-00015a-19 for pgsql-committers@arkaria.postgresql.org; Tue, 19 Sep 2017 20:33:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1duPCZ-0006DB-A9 for pgsql-committers@arkaria.postgresql.org; Tue, 19 Sep 2017 20:33:03 +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 1duPCK-0005mj-6m for pgsql-committers@postgresql.org; Tue, 19 Sep 2017 20:32:48 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1duPCD-0000Lw-Ll for pgsql-committers@postgresql.org; Tue, 19 Sep 2017 20:32:47 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0C00621023; Tue, 19 Sep 2017 16:32:41 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 19 Sep 2017 16:32:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=gdUqoiMPvo82zqvd2M t4xP4/KboAJy6jrecvjsilbpY=; b=QH5iO60FSYDuZZCcerWomFnhCNm+gvSjaG TlG+GXS3kxqtq4v8a8018S2tTZk6PY+px4Atr1T1cWUxkDduo+JwRdC+crwmnZTi 9ZpsVi9MyDNOjg91vYd6aGbBHeeqJKDkIxetHD8HBTeaLf0cywD+aMhqXYbd01Ii eY2q17cUGejKhOjtuP89rJ/V4OEHqH2z+GCzvXS/kkrjqzLB3398VKNhL203heU8 DRGC7hcD+QkYwvDcjmGq7vkuDXvkhTCNTLsfMqaXLM6YeuGsWUYHUyLYIUC06wF7 Eg3b8IMkNqGkmom7ZfYmY1/0DWP9xBkO+589ATMquMpj2WSCo6nw== X-ME-Sender: X-Sasl-enc: zDDHnIQH9mZVCEhIJZ1fOcs4aO6Oi2RIw59Qqy+10DEh 1505853160 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id BAD9A244C7; Tue, 19 Sep 2017 16:32:40 -0400 (EDT) Date: Tue, 19 Sep 2017 13:32:39 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Speedup pgstat_report_activity by moving mb-aware truncation to Message-ID: <20170919203239.lshzqs4fqnpeo7sg@alap3.anarazel.de> References: <32707.1505852731@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32707.1505852731@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 On 2017-09-19 16:25:31 -0400, Tom Lane wrote: > Andres Freund 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