Re: Large Objects in table - Mailing list pgsql-novice

From Rainer Bauer
Subject Re: Large Objects in table
Date
Msg-id 3mgsn1lns7s18fm7sij3429ifalgaimsnb@4ax.com
Whole thread Raw
In response to Large Objects in table  ("Roland Giesler" <roland@giesler.za.net>)
Responses Re: Large Objects in table  ("Roland Giesler" <roland@giesler.za.net>)
List pgsql-novice
"Roland Giesler" wrote:

>How does one create a BLOB in postgres?  V. 8.0.3
>
>I have read about cio's and lo in previous versions, but cannot find detail
>about how to do it in pg8.
>
>I would like to store different report layouts in a column of a tables
>called 'reports', but somehow the datatype elludes me.

How big are there reports?

If they are not too big, why don't you just use "bytea"?
See chapter "8.4. Binary Data Types"

Rainer

PS: I was struggling along the same lines, because when starting with postgres
the documentation seems to suggest to use the lo type for BLOB's (Chapter 28.
Large Objects). But I really could not find any reason to use them if the
objects are small (up to 200 KB).

Can any experienced Postgres user perhaps shed a light on this?

pgsql-novice by date:

Previous
From: Christopher Browne
Date:
Subject: Re: Application using PostgreSQL as a back end (experienced programmers please)
Next
From: Tom Lane
Date:
Subject: Re: Problem Accessing PostgreSQL from Perl CGI