Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eM1f7-0002PR-F0 for pgsql-committers@arkaria.postgresql.org; Tue, 05 Dec 2017 01:04:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eM1f7-0003u6-25 for pgsql-committers@arkaria.postgresql.org; Tue, 05 Dec 2017 01:04:41 +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 1eM1f6-0003tu-QL for pgsql-committers@lists.postgresql.org; Tue, 05 Dec 2017 01:04:40 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eM1f3-0002Th-Pn for pgsql-committers@postgresql.org; Tue, 05 Dec 2017 01:04:39 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7D1F120CF3; Mon, 4 Dec 2017 20:04:36 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 04 Dec 2017 20:04:36 -0500 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; s=fm1; bh=iTK9jGvOi6UUPah60Rmr2ydhDTPrS BHRZ4qO5l0bbUU=; b=JtcXF9MfQOhpTySbcww/y13DUYLLsEy1fFV7DcCL/xvV4 fstlERkfn8pA+9TYVe1+kj/RQ7df+h2JTWFOuANSyDkU92uDkafvXJ8X9gtyMuFn c0gZIiVw2k3CT5/68MwnLf6M56bNIrpNAPiJZQTc3HwZC57WdRCR3cmdtinhHgkJ aDDyEHETI6HXUFZHtYvSQhuzc6Z/LQzv2mJ2x0DBA263vb4695Iw7AzE70CruQQ0 s6WnMM9eCS3u9hm7pEXMRPlIXrIMesG1HfKLGYtGfkeyzxDVae5RSPSMSqo0HK4l y8IfvwAsGDNHYKSWue8hpsfW/kZ2HEzRnmvpWqqDg== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 332C37FAD5; Mon, 4 Dec 2017 20:04:36 -0500 (EST) Date: Mon, 4 Dec 2017 17:04:35 -0800 From: Andres Freund To: Peter Eisentraut Cc: pgsql-committers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Add more efficient functions to pqformat API. Message-ID: <20171205010435.hlqhoa27xk7szbn2@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2017-12-04 19:58:01 -0500, Peter Eisentraut wrote: > On 11/30/17 14:49, Peter Eisentraut wrote: > > On 10/11/17 19:11, Andres Freund wrote: > >> 3) Add pq_writeint$width(), pq_writestring(). These rely on sufficient > >> space in the StringInfo's buffer, avoiding individual space checks > >> & potential individual resizing. To allow this to be used for > >> strings, expose mbutil.c's MAX_CONVERSION_GROWTH. > > > > This has been causing warnings from cpluspluscheck. I suggest the > > attached patch to address that. > > committed Thanks! Greetings, Andres Freund