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 1h6y4u-0001HK-GY for pgsql-general@arkaria.postgresql.org; Thu, 21 Mar 2019 13:49:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h6y4s-0007eP-2b for pgsql-general@arkaria.postgresql.org; Thu, 21 Mar 2019 13:49:50 +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 1h6y4r-0007Zd-QO for pgsql-general@lists.postgresql.org; Thu, 21 Mar 2019 13:49:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6y4k-00083Y-Bj for pgsql-general@lists.postgresql.org; Thu, 21 Mar 2019 13:49:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x2LDnXZD009588; Thu, 21 Mar 2019 09:49:34 -0400 From: Tom Lane To: "Peter J. Holzer" cc: pgsql-general@lists.postgresql.org Subject: Re: Performance of ByteA: ascii vs binary In-reply-to: <20190321123536.rrhnfudjws3h5xny@hjp.at> References: <20190319193727.34fgmdiipcxdgvn4@hjp.at> <8edaa4a7-954d-61ad-9641-650ec5d7d643@thomas-guettler.de> <20190321123536.rrhnfudjws3h5xny@hjp.at> Comments: In-reply-to "Peter J. Holzer" message dated "Thu, 21 Mar 2019 13:35:36 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <9586.1553176173.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Thu, 21 Mar 2019 09:49:33 -0400 Message-ID: <9587.1553176173@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "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. regards, tom lane