Re: Support for CREATE MODULE?
Joe Conway <mail@joeconway.com>
From: Joe Conway <mail@joeconway.com>
To: Jim Mlodgenski <jimmy76@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-06-02T15:11:42Z
Lists: 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