Re: bytea or blobs?

From: Richard Huxton <dev(at)archonet(dot)com>
To: beyaNet Consultancy <beyanet(at)ntlworld(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: bytea or blobs?
Date: 2004-06-03 07:19:07
Message-ID: 40BED0EB.8060303@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

beyaNet Consultancy wrote:
> Hi,
> what I am trying to do is to be able to store images in my database.
> What I wanted to know is this:
>
> 1. Would it be better to have the image field type as a bytea or a blob?
> I have heard it mentioned that bytea would be better as doing data dumps
> would also insure that the image was saved as well!
>
> 2. Would it be better to make reference to mp3 files (i.e. storing the
> address of the image /images/*.jpg) or is it feasible to store the mp3
> in the database as bytea or blobs as well?

Depends on the precise details of your situation.

Check the mailing-list archives (this list and general would be a good
start) for plenty of discussion on these.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Andrei Bintintan 2004-06-03 09:16:43 Reference with condition on other table column?
Previous Message Rajesh Kumar Mallah 2004-06-03 05:03:40 Re: Query becoming slower on adding a primary key