Re: Performance of ByteA: ascii vs binary

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Thomas Güttler <guettliml(at)thomas-guettler(dot)de>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Performance of ByteA: ascii vs binary
Date: 2019-03-18 14:49:45
Message-ID: 2888.1552920585@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2019-03-18 14:51:01 Re: Permission to refresh materialized view
Previous Message Vijaykumar Jain 2019-03-18 14:49:22 Re: [External] Re: postgresql-11 installation errors via deb package on ubuntu 16