Re: BYTEA vs BLOB - Mailing list pgsql-sql

From John DeSoi
Subject Re: BYTEA vs BLOB
Date
Msg-id 3E62E3B0-473E-4251-AD96-64D57E5C5186@pgedit.com
Whole thread Raw
In response to BYTEA vs BLOB  (Eugene Yin <eugeneymail@ymail.com>)
Responses Re: BYTEA vs BLOB
List pgsql-sql
> On Jan 12, 2016, at 7:45 PM, Eugene Yin <eugeneymail@ymail.com> wrote:
>
> Now if I migrate the Oracle table to Postgres and change the data type to BYTEA, how will the photo file (BYTEA) be
stored?
>
> 1) The whole photo data will be stored inside the table?
>
> Or
>
> 2) Only the reference to the data is stored inside the table, the data itself will be stored outside the table (but
stillwithin the database) for efficiency purpose? 
>

This is a good summary of your options:

https://www.microolap.com/products/connectivity/postgresdac/help/tipsandtricks_byteavsoid.htm

John DeSoi, Ph.D.




pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: best way sync data from Oracle to PostgreSQL?
Next
From: Michael Moore
Date:
Subject: strip values from json doc