Binary transfer vs Text transfer

From: Aleksei Ivanov <iv(dot)alekseii(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Binary transfer vs Text transfer
Date: 2020-06-17 18:55:44
Message-ID: CAN0E21MgD18bNXr+05yHGVkdr8+EzziZ+dYUCWVhwdYe_Bc7LA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello, colleagues,

I have one question related to my current measurements results.

I am fetching integers in text format like:

Select * from table limit 10000000. It take 18.5 seconds to finish and the
transfer data is 633 MB.

When I fetching the same data using binary cursor, the transfer data is 480
MB, but the transfer time is 21.5 seconds?

So, I have one question could someone explain what can be the reason why
the transferring time for binary data is higher?

Best regards,

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2020-06-17 19:12:12 Re: Binary transfer vs Text transfer
Previous Message Alvaro Herrera 2020-06-17 18:50:14 Re: Review for GetWALAvailability()