pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Thomas Güttler <guettliml@thomas-guettler.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Performance of ByteA: ascii vs binary
Date: Mon, 18 Mar 2019 10:49:45 -0400
Message-ID: <2888.1552920585@sss.pgh.pa.us> (raw)
In-Reply-To: <8002ab5d-64b9-46c9-c2f4-62d03dd18cf3@aklaver.com>
References: <c861b16d-29cb-47ee-6c22-e15f608928b6@thomas-guettler.de>
	<8002ab5d-64b9-46c9-c2f4-62d03dd18cf3@aklaver.com>

Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 3/18/19 7:33 AM, Thomas Güttler wrote:
>> If I used ascii data the tests took 52 seconds.
>> If I used random binary data the test took 250 seconds.

This doesn't seem terribly surprising in bytea_output = escape
mode.  Probably with bytea_output = hex the performance would
be less data-dependent.

			regards, tom lane




view thread (9+ messages)  latest in thread

Message-ID: <2888.1552920585@sss.pgh.pa.us>
Permalink:  ../2888.1552920585@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2888.1552920585@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, guettliml@thomas-guettler.de
  Subject: Re: Performance of ByteA: ascii vs binary
  In-Reply-To: <2888.1552920585@sss.pgh.pa.us>
  References: <c861b16d-29cb-47ee-6c22-e15f608928b6@thomas-guettler.de> <8002ab5d-64b9-46c9-c2f4-62d03dd18cf3@aklaver.com> <2888.1552920585@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox