On Saturday 11 November 2000 20:30, Tom Lane wrote:
> Philip Warner <pjw@rhyme.com.au> writes:
>
> > Might even be able to implement a 'CREATE MODULE' which loads an
> > object, enquires about functions in the module, and creates function
> > entries based on information returned from pg_fmgr_info...
>
> That could work ... something to think about for the future, anyway.
I proposed this some time ago, even wrote up a semiformal proposal.
I was told at the time it was a bad idea.
The only objection I remember of the top of my head had to do with set-uid.
I apporached the other way. LOAD MODULE would call a well defined
entry point which could then use SPI or some other facility to create
whatever. I saw it as a way to distribute types and even whole applications.
--
Mark Hollomon