Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fi0qr-0002fW-7X for pgsql-committers@arkaria.postgresql.org; Tue, 24 Jul 2018 17:11:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fi0qp-0002tL-JC for pgsql-committers@arkaria.postgresql.org; Tue, 24 Jul 2018 17:11:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fi0qn-0002tD-Mk for pgsql-committers@lists.postgresql.org; Tue, 24 Jul 2018 17:11:55 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fi0qi-0000gV-0B for pgsql-committers@lists.postgresql.org; Tue, 24 Jul 2018 17:11:53 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 63AB521B4F; Tue, 24 Jul 2018 13:11:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 24 Jul 2018 13:11:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; 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= fm2; bh=BtlLs7oerW8zGByen0NWrTXJHo3lqlZi4pPTfnMQNJw=; b=Xo9hHUNG PNsPrKbmBfvbzu7LBOez7x/KX8e8U0Uo0/Y3PSBETRRrH8M0vcx1h9tAMWHF7n35 RX6I4DVzb8TP4bbte0o8v9xb/+MAvt+O4OrPEBlye3cfXS5ATuQKqBAkBqoBx5LX qZdIqNXoa2N+cEd0aadl7NDnwmtGdnHJDqqeAVf4TQ1sRplEcIOHLGE3RUGXVhxI 2R27uIAGo7X6BEpJShe0bOBTOFNMtUdJAH6uFtjB5jFvP0Xd/IlI6/K/8AkWA7FA JhVzyQqYrJDqYiVf2Ul8lRtHqSvc2pkr5SoqS49FF5jd8u8ymN1TNnjACcvTNA0I 1SF6Hcsh/DtoZQ== 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=fm3; bh=BtlLs7oerW8zGByen0NWrTXJHo3lq lZi4pPTfnMQNJw=; b=FWbfbkgQQPdphUAGkhfhpZN4VR5oiXJnYXKGprB5fPRpd V+WqWcXBPxwLvLaItE3AcPK2Vf6iLS6mEuDFyQEGFtG+rxddv8cpHW1c3a4xUZaE PtjXYvCUc4tSXJiF4FYofVAqdw/zfcQ+yK5Yj1bG2GEH+MSyUjJIpVoBaztKd4lf ExKjrX3MifLs+NG/4NC/tUpTVhljYLj+a9RMoprprUuvFm2VqJvVmzy8MoIZHxMl 2W/piBufIjzGzX87mkWwtLwJZ0xMxDkZf/kayP/UR+FVPwkumF4FgssJWmzVX7Y3 eUinfeCcixaQjpVQqcxsKO0zKoBxNzqXfpEPbiKvQ== X-ME-Proxy: X-ME-Sender: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 93C7010261; Tue, 24 Jul 2018 13:11:45 -0400 (EDT) Date: Tue, 24 Jul 2018 10:11:44 -0700 From: Andres Freund To: David Rowley Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Hand code string to integer conversion for performance. Message-ID: <20180724171144.rjak6wbtpw7naj2o@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 2018-07-24 22:10:09 +1200, David Rowley wrote: > On 23 July 2018 at 10:30, Andres Freund wrote: > > Hand code string to integer conversion for performance. > > This could do with the attached to silence the compiler warnings from > compilers that don't understand ereport(ERROR) does not return. Pushed. Not sure if any of those do enough control flow analysis to even consider those blocks reachable? But anyway, doesn't hurt. Greetings, Andres Freund