Re: administering files, data type "file"

From: "Scott Marlowe" <smarlowe(at)qwest(dot)net>
To: "Daniel Heiserer" <danielheiserer(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: administering files, data type "file"
Date: 2004-06-20 05:56:28
Message-ID: 1087710987.28062.57.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 2004-06-19 at 06:26, Daniel Heiserer wrote:
> Hi,
> I want to administer files with postgres.
> When I "import" a file to postgres I also
> submit certain atributes the file has.
> Such as filetype or specific properties I know
> about the file (not the standard stuff like
> the OS knows about the file as date,and size)
> I want that postgres then copies the file to a
> save place and write and read protects it.
> Once I query for certain attributes I submitted before
> and I get a hit I should be able to get the filename
> from postgres including a "read" permission.
> I also want to be able to create a new file.
> After submitting the properties the file has
> postgres should give me a filename and write
> permission
> for that file. After finishing my creation of the file
> I want that postgres stops read and write access to
> that file.

I'd think you'd need to create rules and triggers with user defined
functions to do it. But it's doable. It's not a simple project in any
database, and it certainly isn't a native behavior of any databases I
know.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tim Penhey 2004-06-20 08:16:39 Re: File System Restore
Previous Message mike.griffin 2004-06-20 02:37:20 Re: 7.4's INFORMATION_SCHEMA.Columns View