Re: I am verynew to postgresql problem with defining blob field

From: John DeSoi <desoi(at)pgedit(dot)com>
To: Richmond(dot)Dyes(at)monroehosp(dot)org
Cc: 'PGSQL-Novice' <pgsql-novice(at)postgresql(dot)org>
Subject: Re: I am verynew to postgresql problem with defining blob field
Date: 2005-04-04 23:47:36
Message-ID: EC48362B-A563-11D9-8FA8-000A95B03262@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


On Apr 4, 2005, at 1:34 PM, Richmond Dyes wrote:

> I have not been able to figure out how to define a field as a BLOB. I
> know you can bytea but from what I have read, that is not the
> preferred method to store documents like word, excel, photoshop or the
> like. Can someone either send me a link to a good explanation on how
> to setup a BLOB field or quickly tell me how?

bytea should be fine for files up to 1 GB. If you need to access parts
of the file, the large object interface might be more suitable. It
supports files up to 2 GB.

Below is the documentation for the large object interface. The table of
contents includes a link to an example program.

http://www.postgresql.org/docs/8.0/interactive/largeobjects.html

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2005-04-05 01:48:11 Re: Major problem with custom data type
Previous Message Morgan Kita 2005-04-04 20:15:37 Re: Major problem with custom data type