Re: Seek within Large Object, within PL/* function?

From: Klint Gore <kgore4(at)une(dot)edu(dot)au>
To: Adam Seering <aseering(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Seek within Large Object, within PL/* function?
Date: 2008-11-14 05:50:28
Message-ID: 491D11A4.9050005@une.edu.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adam Seering wrote:
> Hi,
> I'm new here, apologies if this is the wrong list...
>
> I'm playing around with storing custom preprocessed data structures
> within Large Objects. I'd like to be able to write a custom function
> that will, within a query, let me select out particular bytestrings from
> the middle of a Large Object (within C, I think 'lo_lseek' and 'lo_read'
> would get me what I want).
>
> I'd like to do so from some PL/* embedded language, rather than a
> compiled C module. I can't find any documentation on doing this,
> though. Is it possible? Thoughts?
>
According to http://www.postgresql.org/docs/8.3/static/lo-funcs.html ,
the functions are server side too

postgres=# select proname from pg_proc where proname like 'lo%';
proname
-------------
lo_close
lo_creat
lo_create
lo_export
lo_import
lo_lseek
lo_open
lo_tell
lo_truncate
lo_unlink
log
log
log
loread
lower
lowrite

It's odd that loread and lowrite don't follow the naming convention with
the underscore (8.3.3 win32)?

klint.

--
Klint Gore
Database Manager
Sheep CRC
A.G.B.U.
University of New England
Armidale NSW 2350

Ph: 02 6773 3789
Fax: 02 6773 3266
EMail: kgore4(at)une(dot)edu(dot)au

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Guy Rouillier 2008-11-14 06:30:08 Re: Upgrading side by side in Gentoo
Previous Message Fernando Moreno 2008-11-14 05:49:17 Re: backup and permissions