Re: Large objects in web applications

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: wsheldah(at)lexmark(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Large objects in web applications
Date: 2001-06-26 18:25:05
Message-ID: 3832.993579905@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

wsheldah(at)lexmark(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shaun Thomas 2001-06-26 19:00:16 Re: More Red Hat information
Previous Message Thalis A. Kalfigopoulos 2001-06-26 18:21:19 Re: Re: index on a box