agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Eugene Yin <eugeneymail@ymail.com>
To: John DeSoi <desoi@pgedit.com>
To: Postgres List <pgsql-sql@postgresql.org>
Subject: Re: BYTEA vs BLOB
Date: Sat, 16 Jan 2016 16:08:05 +0000 (UTC)
Message-ID: <563742622.6654475.1452960485450.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <3E62E3B0-473E-4251-AD96-64D57E5C5186@pgedit.com>
References: <3E62E3B0-473E-4251-AD96-64D57E5C5186@pgedit.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
view thread (8+ messages) latest in thread
Message-ID: <563742622.6654475.1452960485450.JavaMail.yahoo@mail.yahoo.com>
Permalink: ../563742622.6654475.1452960485450.JavaMail.yahoo@mail.yahoo.com/
Also on: postgresql.org/message-id/563742622.6654475.1452960485450.JavaMail.yahoo@mail.yahoo.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: eugeneymail@ymail.com, desoi@pgedit.com
Subject: Re: BYTEA vs BLOB
In-Reply-To: <563742622.6654475.1452960485450.JavaMail.yahoo@mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox