Re: Selecting Large Object and TOAST - Mailing list pgsql-general

From Jan Wieck
Subject Re: Selecting Large Object and TOAST
Date
Msg-id 4393D572.9090509@Yahoo.com
Whole thread Raw
In response to Re: Selecting Large Object and TOAST  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: Selecting Large Object and TOAST
List pgsql-general
On 12/4/2005 11:45 PM, Joshua D. Drake wrote:

> Well as I said it depends on the size of the data. Are we talking 100
> meg vector images? Then large objects. Are we talking thumbnails that
> are 32k then bytea.

I'd say that anything up to a megabyte or so can easily live in bytea.
Beyond that it depends on the access pattern.

That said, for certain situations I think some sql-callable functions
would be very handy:

     lo_get(oid) returns bytea
     lo_set(oid, bytea) returns void
     lo_ins(bytea) returns oid
     lo_del(oid) returns void

Those (and maybe some more) would allow access of traditional large
objects through client interfaces that don't support the regular large
object calls.


Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Selecting Large Object and TOAST
Next
From: Trent Shipley
Date:
Subject: Inheritance Algebra