new src :> - Mailing list pgsql-hackers

From ivan
Subject new src :>
Date
Msg-id Pine.LNX.4.56.0307121933330.1522@rex.anfa.pl
Whole thread Raw
List pgsql-hackers
hi, now i writed support for writing and reading files by select.
i created function like in stdio.h iv_fopen (cstring,cstring),
iv_fread , etc
the FILE * struct is replaced by OID value

you can download src from
http://www.psycho.pl/public/src/pgsql/files.tar.bz2
and sample to to have /etc/passwd in table

Is nice way to have conf files in db, may be /etc/passwd its not so good
idea, but apache conf, or bind , or ftp i think can be.

I had to added one function to fd.h/c ( bool IsAllocated (FILE*) )
to check is file still allocated.

This option maybe its not so goot way to use it as std but will be nice
see it as contrib or option in ./configure

what do you think ?

(THIS IS EXPERIMENTAL)

bye



pgsql-hackers by date:

Previous
From: Philip Warner
Date:
Subject: Re: Why are triggers semi-deferred?
Next
From: Sailesh Krishnamurthy
Date:
Subject: Re: agg/order-by question