Re: Image File System Question

From: vishal saberwal <vishalsaberwal(at)gmail(dot)com>
To: Douglas McNaught <doug(at)mcnaught(dot)org>
Cc: Richard Huxton <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Image File System Question
Date: 2005-11-04 19:25:46
Message-ID: 3e74dc250511041125y31a2d56fh7bf9e1d83f1a3834@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

thanks for all your prompt reponses but i am still not clear with the way to
solve the problem.
I am sorry if i wasn't clear with my problem the first time.

My problem isn't file system and the way i lay it out.
What i need to know is a way to stream out external resource files via
stored procedure calls.

Steps:
(1) User calls stored procedure ReadImage(ImageID).
(2) Stored procedure reads the Image table to find the location (field) for
the given ID.
(3) Now this stored procedure ("HOW TO?") opens the file.
(4) Then it "Streams" it out to the User (as if it was a BLOB).
(5) For User its just like a lo_export but he has no clue if its stored in
database or a seperate resource file system.

Resource file system can be accessed only through the database, where we
will check for permissions if we need to (though i know i can implement
permissions in the file systems as well).

What is the best way to do Steps (3) and (4) above?

thanks,
vish
(vishal saberwal)

On 11/4/05, Douglas McNaught <doug(at)mcnaught(dot)org> wrote:
>
> vishal saberwal <vishalsaberwal(at)gmail(dot)com> writes:
>
> > HFS is the filesystem richard was tlking about. I am not familiar with
> > this file system but i guessed it was HFS+ that he was talking about.
> > yes, i understand all modern filesystems are Hirearchical file systems.
>
> Oh, OK--reading your original message, you just want to store the data
> files in a hierarchical arrangement of some sort.
>
> -Doug
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message vishal saberwal 2005-11-04 19:27:51 Re: BLOB and OID
Previous Message Assad Jarrahian 2005-11-04 18:58:59 pl/pgsql list as parameter.