Andrew Dunstan <and...@dunslane.net> writes:
> Bernd Helmle wrote:
>> I'm dumb: I don't understand why a hex conversion would be 
>> significantly faster than what we have now?

> Quite apart from anything else you would not need the current loop over 
> the bytea input to calculate the result length - in hex it would just be 
> the input length * 2.

Another point is that the current format results in a very large number
of backslashes in the output data, which translates to extra time and
space at the level of the COPY protocol itself (since that has to double
all those backslashes).

Of course, base64 would also have these two advantages.

                        regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to