Thread: BLOB type

BLOB type

From
Vladislav Breus
Date:
Has PostgreSQL the data type such ORACLE BLOB type ?

(BLOB: A binary large object. Maximum size is 4 gigabytes.)

I have about 200-300 binary files (with size less then 1-2 MB),
which I need storage in DB.

Re: BLOB type

From
Peter Eisentraut
Date:
Vladislav Breus writes:

> Has PostgreSQL the data type such ORACLE BLOB type ?

bytea is for storing binary data.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


Re: BLOB type

From
Vladislav Breus
Date:
Can I use UPDATE or INSERT to store data this type, or I must
use lo_import or lo_export ONLY?

for ex.

%insert into test (col) ('<--- binary data --->');

Is it possible ?

Peter Eisentraut wrote:
>
> Vladislav Breus writes:
>
> > Has PostgreSQL the data type such ORACLE BLOB type ?
>
> bytea is for storing binary data.