Re: binary data storage - Mailing list pgsql-general

From Marin Dimitrov
Subject Re: binary data storage
Date
Msg-id 006701c1dbbc$3ae930a0$9b0e32d4@sirma.bg
Whole thread Raw
In response to binary data storage  (Devrim GUNDUZ <devrim@oper.metu.edu.tr>)
Responses Re: binary data storage
Re: binary data storage
List pgsql-general
----- Original Message -----
From: "Devrim GUNDUZ"

>
> Hi,
>
> Let's say we have 100 MB of binary file (for example, a zip file). How
> could we store this file in PostgreSQL? Which datatype could we use and
> how do we insert it?
>

search for "large objects" in the Programmer's Guide (
http://www.ca.postgresql.org/users-lounge/docs/#7.2 )

in your case Large Objects (chapter 2 from the Programmer's Guide) may be
more appropriate than binary strings (chapter 3.4 from the User's Guide)

hth,

    Marin

----
"...what you brought from your past, is of no use in your present. When
you must choose a new path, do not bring old experiences with you.
Those who strike out afresh, but who attempt to retain a little of the
old life, end up torn apart by their own memories. "



pgsql-general by date:

Previous
From: Mark kirkwood
Date:
Subject: Re: Re : Solaris Performance - Profiling (Solved)
Next
From: Devrim GUNDUZ
Date:
Subject: Re: binary data storage