Re: BYTEA vs BLOB

Поиск
Список
Период
Сортировка
От Eugene Yin
Тема Re: BYTEA vs BLOB
Дата
Msg-id 563742622.6654475.1452960485450.JavaMail.yahoo@mail.yahoo.com
обсуждение
Ответ на Re: BYTEA vs BLOB  (John DeSoi <desoi@pgedit.com>)
Ответы Re: BYTEA vs BLOB
Список pgsql-sql
When use Ora2Pg to migrate the Oracle to Pg, the BLOB data type in Oracle will supposedly be converted into BYTEA in Pg.  Is this achievable?  

If so, after the data become BYTEA, can I further convert the BYTEA into OID data type, and how to?



Thanks

Eugene


On Thursday, January 14, 2016 8:05 AM, John DeSoi <desoi@pgedit.com> wrote:



> 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 still within 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.



--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

В списке pgsql-sql по дате отправления: