[Python-Dev] BLOBs in Pg (was: email package Bytes vs Unicode)
Tony Nelson
tonynelson at georgeanelson.com
Thu Apr 9 20:43:16 CEST 2009
At 21:24 +0400 04/09/2009, Oleg Broytmann wrote:
>On Thu, Apr 09, 2009 at 01:14:21PM -0400, Tony Nelson wrote:
>> I use MySQL, but sort of intend to learn PostgreSQL. I didn't know that
>> PostgreSQL has no real support for BLOBs.
>
> I think it has - BYTEA data type.
So it does; I see that now that I've opened up the PostgreSQL docs. I
don't find escaping data to be a problem -- I do it for all untrusted data.
So, after all, there isn't an example of a database that makes onerous the
storing of email and other such byte-oriented data, and Python's email
package has no need for workarounds in that area.
--
____________________________________________________________________
TonyN.:' <mailto:tonynelson at georgeanelson.com>
' <http://www.georgeanelson.com/>
More information about the Python-Dev
mailing list