Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eM1Yl-00025c-Md for pgsql-committers@arkaria.postgresql.org; Tue, 05 Dec 2017 00:58:07 +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 1eM1Yl-0000Ho-8w for pgsql-committers@arkaria.postgresql.org; Tue, 05 Dec 2017 00:58:07 +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 1eM1Yk-0000Hb-Q0 for pgsql-committers@lists.postgresql.org; Tue, 05 Dec 2017 00:58:07 +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 1eM1Yi-0002Ms-2Q for pgsql-committers@postgresql.org; Tue, 05 Dec 2017 00:58:05 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id AE3E620CD4; Mon, 4 Dec 2017 19:58:02 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Mon, 04 Dec 2017 19:58:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding: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=REdoC1 Z7LOOVK3/bXavjWEexsEw56C27bDcMd5NsaYY=; b=GA3PqSdHZkzHJBHMm+rlBV pK8OPb20clr4GYAAmIs7fxnZXXP+uAOqUdj4Nsal36P3x1jcFQskDUs4XZvNacu/ fNPZexuOjrs//HC04Ey/f0V4vLl1qYNuj7XKmZJpjjkKlDQH1XVZ7h8y45Tqg3Id IZSM+sClXCczB0vXDWJBiQg0mjunfWov023+pjOuQ7L9Un8YE0XCyugnSoXXJ/h6 l076s5c28b/9UNO5kdsWVWPfesMBTpAF6VD26roA7V8KfAwQ4rZKTRL30UmA3EkM mpR3WaSm1KXmWzxe/lFKQ3Z8NGtuZkqbqiG+4bVby/8kfSXJo+l5MoadAh/4EJeQ == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 4A33C24580; Mon, 4 Dec 2017 19:58:02 -0500 (EST) Subject: Re: [COMMITTERS] pgsql: Add more efficient functions to pqformat API. From: Peter Eisentraut To: Andres Freund , pgsql-committers@postgresql.org References: Organization: 2ndQuadrant Message-ID: Date: Mon, 4 Dec 2017 19:58:01 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services