Re: BLOB HOWTO??

From: Franck Martin <franck(at)sopac(dot)org>
To: Jan Wieck <janwieck(at)Yahoo(dot)com>
Cc: ohp(at)pyrenet(dot)fr, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: BLOB HOWTO??
Date: 2001-01-30 09:50:15
Message-ID: 3A768E57.375E8FF9@sopac.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

I'm interested by TOAST, and I have asked several questions on the subject...
I haven't tested them yet...

First I thought that the type bytea allows storing of binary data, a BSOB
(Binary Small OBject).
Secondly that by using a binary cursor you have access to the raw data as it
is stored in the database, but not as it is presented in ASCII
Thridly we could use a funtion to retreive parts of columns, something like
mid(column,start,length)
Fourthly we may use the same function for storing data back.

Cheers...
Franck(at)sopac(dot)org

Jan Wieck wrote:

> Olivier PRENANT wrote:
> > Hi Bruce,
> >
> > Any idea when it's due for??
> > I've been thining about writing a user function; But I'll get stuck with
> > permission as a user function is running under the "postgres" or whatever
> > user instead of the calling user.
> >
> > Also, what kind of binary interface are you thinking of??
>
> Something similar to the existing lo_...() functions.
>
> Actually, someone should use the existing large objects to
> deal with binary content. What has to be kept in mind is
>
> 1. You have to cleanup yourself - the existing large objects
> aren't removed automatically if you delete a table row
> referencing to the LO or drop the table.
>
> 2. The existing LOs don't have copy behaviour. So if you
> reference to a LO from one table and do an INSERT ...
> SELECT, just it's OID is copied, not the data (as it
> should be IMHO).
>
> Jan
>
> --
>
> #======================================================================#
> # It's easier to get forgiveness for being wrong than for being right. #
> # Let's break this rule - forgive me. #
> #================================================== JanWieck(at)Yahoo(dot)com #
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message m w 2001-01-30 13:01:38 Re: Like vs '='
Previous Message Peter T Mount 2001-01-30 09:15:47 Re: [GENERAL] Trouble porting postgreSQL to WinNT

Browse pgsql-sql by date

  From Date Subject
Next Message clemens schmuck 2001-01-30 10:59:53 Hierarchical Queries
Previous Message Richard Huxton 2001-01-30 09:09:57 Re: script for unidirectional database update