Re: CREATE MODULE (was: Coping with 'C' vs 'newC' function language names) - Mailing list pgsql-hackers

From Mark Hollomon
Subject Re: CREATE MODULE (was: Coping with 'C' vs 'newC' function language names)
Date
Msg-id 00111320335400.12247@jupiter
Whole thread Raw
In response to Re: Coping with 'C' vs 'newC' function language names  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: CREATE MODULE (was: Coping with 'C' vs 'newC' function language names)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Re: [PATCHES] PostgreSQL virtual hosting support
Next
From: Bruce Momjian
Date:
Subject: Re: Re: [PATCHES] PostgreSQL virtual hosting support