From: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Bernd Helmle <mailings(at)oopsware(dot)de>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: bytea vs. pg_dump |
Date: | 2009-05-06 15:18:28 |
Message-ID: | b42b73150905060818q5a97278cx8409d334e37f5f70@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, May 6, 2009 at 8:02 AM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>
>
> Merlin Moncure wrote:
>>
>> On Tue, May 5, 2009 at 4:14 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>
>>>
>>> Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
>>>
>>>>
>>>> Tom Lane wrote:
>>>>
>>>>>
>>>>> I'm thinking plain old pairs-of-hex-digits might be the best
>>>>> tradeoff if conversion speed is the criterion.
>>>>>
>>>>
>>>> That's a lot less space-efficient than base64, though.
>>>>
>>>
>>> Well, base64 could give a 33% savings, but it's significantly harder
>>> to encode/decode. Also, since it has a much larger set of valid
>>> data characters, it would be *much* more likely to allow old-style
>>> formatting to be mistaken for new-style. Unless we can think of
>>> a more bulletproof format selection mechanism, that could be
>>> an overriding consideration.
>>>
>>
>> another nit with base64 is that properly encoded data requires
>> newlines according to the standard.
>>
>
> er, no, not as I read rfc 3548 s 2.1.
PostgreSQL (sort of) follows RFC 2045, not RFC 3548. I don't think it
would be a good idea to introduce a second method of encoding base64.
merlin
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-05-06 15:20:06 | Re: text_pattern_ops and complex regexps |
Previous Message | Stephen Frost | 2009-05-06 15:04:49 | Re: text_pattern_ops and complex regexps |