Re: Re: Data type for storing images? - Mailing list pgsql-general

From Tom Lane
Subject Re: Re: Data type for storing images?
Date
Msg-id 20505.984507956@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: Data type for storing images?  ("Gordan Bobic" <gordan@freeuk.com>)
List pgsql-general
"Gordan Bobic" <gordan@freeuk.com> writes:
> More to the point, what would be a reason for not using bytea to
> replace BLOBs completely?

The fact that encoding/decoding is a pain in the neck :-(.  The
lo_read/lo_write interfaces are a relatively convenient way to send
and receive binary data, but the ASCII input-output representation that
bytea uses is not.

We really need some binary-friendly data transmission interface like
lo_read/lo_write for bytea fields before they will be ready to take over
the world.  I think Jan has some ideas about how to do that, but it's
not done yet.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: creating a view that shows relation name -> OID
Next
From: "Brent R. Matzelle"
Date:
Subject: Re: psql win32 version?