Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6yR4-0002NR-J2 for pgsql-general@arkaria.postgresql.org; Thu, 21 Mar 2019 14:12:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h6yR3-0004jd-4l for pgsql-general@arkaria.postgresql.org; Thu, 21 Mar 2019 14:12:45 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6yR1-0004ex-Dw for pgsql-general@lists.postgresql.org; Thu, 21 Mar 2019 14:12:44 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6yQx-0000C4-FU for pgsql-general@lists.postgresql.org; Thu, 21 Mar 2019 14:12:42 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A5C1D21964; Thu, 21 Mar 2019 10:12:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 21 Mar 2019 10:12:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=E b97BxJ2r9L8ks9mdV5rslFsXnoF/u2JYHCk/m4mXq0=; b=ARy7nWlbvwF0ksIcP GeuHG6cEiq8pGCcFu2SaL98qg/kpjyhw/gUBP9n2Ksi+ApXBNiLbTbLyoCXX5h/s SIFMVfcLEGmLPwAncEx+vAMYKY/LHmn3X8Zv/eZGX8M+3uMIlcDbowzp6DCrDqC+ QzBG6a5MQbvoOILCUoeVGjGpDdAYXKfkJzRPlfr9ndV0eAhtrZ0p8o4zJSpeHCBj I7Ire9SYjFrIQ21uIw51UMmawJhMNtQTDLkWB+I8o1EWop+Xa7+C9sB3GlecnUaI 86gx9WGyXsv2aPy1s4Lw5Ryyxcp0LK/V4egh5ukkPrb8Pk9IiaVG/eXrjThBx2zF XJ9pw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=Eb97BxJ2r9L8ks9mdV5rslFsXnoF/u2JYHCk/m4mX q0=; b=FrOPXILp2zbUfWcXfuo/BnjZFBU+T7EPWFnKpXj6OqcPhHG8vejpJ4q2R H7yX+2HOByzR3EogD73PAj23d+SKvbcMgvBVSpArmQO3gL4oGz2LtRgYVGAt1Zz4 kgOA1nt6syFIwrauocsyGlB42VwxHl8mP70GWH7u5vA/+P9tjOWh6VOaot6+NJNv 2VIOlw4OtoCPcBrvl1se94tmqy+8Cc88udYCNwhwVW2LadCU0CtHbuX3Dyyphbt4 4hG8kAIvNee+/Fn/lQMjQcLzJIMI9Ej6y5eVlIP5s0y1z1lI/kD9cSYvE+2e+I5a NDoynDhpI5eFXiRTKyaeYeIfGVg1g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrieelgdegjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjedurddvuddvrdduhedtrddvtd dvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id EA4C810324; Thu, 21 Mar 2019 10:12:35 -0400 (EDT) Subject: Re: Performance of ByteA: ascii vs binary To: Tom Lane , "Peter J. Holzer" Cc: pgsql-general@lists.postgresql.org References: <20190319193727.34fgmdiipcxdgvn4@hjp.at> <8edaa4a7-954d-61ad-9641-650ec5d7d643@thomas-guettler.de> <20190321123536.rrhnfudjws3h5xny@hjp.at> <9587.1553176173@sss.pgh.pa.us> From: Adrian Klaver Message-ID: Date: Thu, 21 Mar 2019 07:12:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <9587.1553176173@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/21/19 6:49 AM, Tom Lane wrote: > "Peter J. Holzer" writes: >> On 2019-03-20 13:20:57 +0100, Thomas Güttler wrote: >>> Strange. I saw a big difference. >>> What did you test? >>> I tested inserts. > >> The graph with the quantiles was for selects. > > Hmm, so there are two different code paths being considered here > -- the OP is apparently talking about the speed of bytea_in, > while the rest of us have been thinking about bytea_out. > > The question about whether the text representation is hex or > "escape" style still applies, though. Yes, it would be nice to see the test code. > > regards, tom lane > > -- Adrian Klaver adrian.klaver@aklaver.com