Re: Support for CREATE MODULE? - Mailing list pgsql-hackers

From Joe Conway
Subject Re: Support for CREATE MODULE?
Date
Msg-id 3cb12d67-c94d-375b-d4a1-18441f2abd25@joeconway.com
Whole thread Raw
In response to Re: Support for CREATE MODULE?  (Jim Mlodgenski <jimmy76@gmail.com>)
List pgsql-hackers
On 6/2/21 10:43 AM, Jim Mlodgenski wrote:
> On Wed, Jun 2, 2021 at 9:58 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I wonder whether it'd be better to consider modules as a kind of
>> extension, or at least things with the same sort of ownership relations
>> as extensions have.
> 
> That would solve the problem of associating objects which is the larger
> problem for users today. The objects can all live in their respective
> schemas with the module tying them all together.


Maybe something similar to "CREATE EXTENSION ... FROM unpackaged"?

Something like:
CREATE EXTENSION myfoo; /* shell extension */
ALTER EXTENSION myfoo ADD type ...;
ALTER EXTENSION myfoo ADD function ...;
...

Joe

-- 
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Support for CREATE MODULE?
Next
From: Tom Lane
Date:
Subject: Re: Support for CREATE MODULE?