Re: Large objects in web applications - Mailing list pgsql-general

From Tom Lane
Subject Re: Large objects in web applications
Date
Msg-id 3832.993579905@sss.pgh.pa.us
Whole thread Raw
In response to Large objects in web applications  (wsheldah@lexmark.com)
Responses Re: Large objects in web applications  ("Thalis A. Kalfigopoulos" <thalis@cs.pitt.edu>)
List pgsql-general
wsheldah@lexmark.com writes:
> Has there been any substantial change in the way large objects are
> handled with the coming of 7.1 and the expanded row size limit?

No change in the API (but 7.1 is more efficient under the hood).

> Assuming things haven't changed for large objects, it appears that to display an
> image, I'll need to:
> 1. select the image from postgresql, using lo_export() to save it to a uniquely
> named temp file (to avoid conflicts with other users).

If you just need to read the data, lo_export to a file and read the file
is certainly the hard way.  Use lo_open/lo_read.

            regards, tom lane

pgsql-general by date:

Previous
From: "Thalis A. Kalfigopoulos"
Date:
Subject: Re: Re: index on a box
Next
From: "Gregory Wood"
Date:
Subject: Re: Adding a NOT NULL column?